WPILibC++ 2024.3.2
ADL.h File Reference
#include <type_traits>
#include <iterator>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  wpi
 
namespace  wpi::adl_detail
 
namespace  wpi::detail
 

Typedefs

template<typename RangeT >
using wpi::detail::IterOfRange = decltype(adl_begin(std::declval< RangeT & >()))
 
template<typename RangeT >
using wpi::detail::ValueOfRange = std::remove_reference_t< decltype(*adl_begin(std::declval< RangeT & >()))>
 

Functions

template<typename RangeT >
constexpr auto wpi::adl_detail::begin_impl (RangeT &&range) -> decltype(begin(std::forward< RangeT >(range)))
 
template<typename RangeT >
constexpr auto wpi::adl_detail::end_impl (RangeT &&range) -> decltype(end(std::forward< RangeT >(range)))
 
template<typename T >
constexpr void wpi::adl_detail::swap_impl (T &&lhs, T &&rhs) noexcept(noexcept(swap(std::declval< T >(), std::declval< T >())))
 
template<typename RangeT >
constexpr auto wpi::adl_detail::size_impl (RangeT &&range) -> decltype(size(std::forward< RangeT >(range)))
 
template<typename RangeT >
constexpr auto wpi::adl_begin (RangeT &&range) -> decltype(adl_detail::begin_impl(std::forward< RangeT >(range)))
 Returns the begin iterator to range using std::begin and function found through Argument-Dependent Lookup (ADL). More...
 
template<typename RangeT >
constexpr auto wpi::adl_end (RangeT &&range) -> decltype(adl_detail::end_impl(std::forward< RangeT >(range)))
 Returns the end iterator to range using std::end and functions found through Argument-Dependent Lookup (ADL). More...
 
template<typename T >
constexpr void wpi::adl_swap (T &&lhs, T &&rhs) noexcept(noexcept(adl_detail::swap_impl(std::declval< T >(), std::declval< T >())))
 Swaps lhs with rhs using std::swap and functions found through Argument-Dependent Lookup (ADL). More...
 
template<typename RangeT >
constexpr auto wpi::adl_size (RangeT &&range) -> decltype(adl_detail::size_impl(std::forward< RangeT >(range)))
 Returns the size of range using std::size and functions found through Argument-Dependent Lookup (ADL). More...