9#ifndef WPIUTIL_WPI_ADL_H
10#define WPIUTIL_WPI_ADL_H
26template <
typename RangeT>
28 ->
decltype(begin(std::forward<RangeT>(range))) {
29 return begin(std::forward<RangeT>(range));
34template <
typename RangeT>
36 ->
decltype(end(std::forward<RangeT>(range))) {
37 return end(std::forward<RangeT>(range));
44 T &&rhs)
noexcept(
noexcept(
swap(std::declval<T>(),
45 std::declval<T>()))) {
46 swap(std::forward<T>(lhs), std::forward<T>(rhs));
51template <
typename RangeT>
53 ->
decltype(size(std::forward<RangeT>(range))) {
54 return size(std::forward<RangeT>(range));
61template <
typename RangeT>
69template <
typename RangeT>
78constexpr void adl_swap(T &&lhs, T &&rhs)
noexcept(
85template <
typename RangeT>
93template <
typename RangeT>
96template <
typename RangeT>
98 std::remove_reference_t<decltype(*adl_begin(std::declval<RangeT &>()))>;
detail namespace with internal helper functions
Definition: xchar.h:20
WPI_BASIC_JSON_TPL_DECLARATION void swap(wpi::WPI_BASIC_JSON_TPL &j1, wpi::WPI_BASIC_JSON_TPL &j2) noexcept(//NOLINT(readability-inconsistent-declaration-parameter-name) is_nothrow_move_constructible< wpi::WPI_BASIC_JSON_TPL >::value &&//NOLINT(misc-redundant-expression) is_nothrow_move_assignable< wpi::WPI_BASIC_JSON_TPL >::value)
exchanges the values of two JSON objects
Definition: json.h:5219
constexpr void swap_impl(T &&lhs, T &&rhs) noexcept(noexcept(swap(std::declval< T >(), std::declval< T >())))
Definition: ADL.h:43
constexpr auto begin_impl(RangeT &&range) -> decltype(begin(std::forward< RangeT >(range)))
Definition: ADL.h:27
constexpr auto size_impl(RangeT &&range) -> decltype(size(std::forward< RangeT >(range)))
Definition: ADL.h:52
constexpr auto end_impl(RangeT &&range) -> decltype(end(std::forward< RangeT >(range)))
Definition: ADL.h:35
decltype(adl_begin(std::declval< RangeT & >())) IterOfRange
Definition: ADL.h:94
std::remove_reference_t< decltype(*adl_begin(std::declval< RangeT & >()))> ValueOfRange
Definition: ADL.h:98
Definition: ntcore_cpp.h:26
constexpr auto 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)...
Definition: ADL.h:86
void swap(expected< T, E > &lhs, expected< T, E > &rhs) noexcept(noexcept(lhs.swap(rhs)))
Definition: expected:2438
constexpr auto 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 Looku...
Definition: ADL.h:70
constexpr void 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).
Definition: ADL.h:78
constexpr auto 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 Lo...
Definition: ADL.h:62