WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
std Namespace Reference

Classes

struct  iterator_traits< fmt::basic_appender< T > >
struct  is_error_code_enum< wpi::util::errc >
struct  tuple_size< wpi::util::PointerIntPair< PointerTy, IntBits, IntType, PtrTraits, Info > >
struct  tuple_element< I, wpi::util::PointerIntPair< PointerTy, IntBits, IntType, PtrTraits, Info > >
struct  hash< wpi::util::WPI_BASIC_JSON_TPL >
 hash value for JSON objects More...
struct  less< ::wpi::util::detail::value_t >
struct  tuple_size< wpi::util::array< T, N > >
struct  tuple_element< I, wpi::util::array< T, N > >
class  conditional

Functions

template<typename T>
void swap (wpi::util::StringMap< T > &lhs, wpi::util::StringMap< T > &rhs)
template<class T, unsigned N>
void swap (wpi::util::SmallPtrSet< T, N > &LHS, wpi::util::SmallPtrSet< T, N > &RHS)
 Implement std::swap in terms of SmallPtrSet swap.
WPI_BASIC_JSON_TPL_DECLARATION void swap (wpi::util::WPI_BASIC_JSON_TPL &j1, wpi::util::WPI_BASIC_JSON_TPL &j2) noexcept(//NOLINT(readability-inconsistent-declaration-parameter-name, cert-dcl58-cpp) is_nothrow_move_constructible< wpi::util::WPI_BASIC_JSON_TPL >::value &&//NOLINT(misc-redundant-expression, cppcoreguidelines-noexcept-swap, performance-noexcept-swap) is_nothrow_move_assignable< wpi::util::WPI_BASIC_JSON_TPL >::value)
 exchanges the values of two JSON objects

Function Documentation

◆ swap() [1/3]

template<class T, unsigned N>
void std::swap ( wpi::util::SmallPtrSet< T, N > & LHS,
wpi::util::SmallPtrSet< T, N > & RHS )
inline

Implement std::swap in terms of SmallPtrSet swap.

◆ swap() [2/3]

template<typename T>
void std::swap ( wpi::util::StringMap< T > & lhs,
wpi::util::StringMap< T > & rhs )
inline

◆ swap() [3/3]

WPI_BASIC_JSON_TPL_DECLARATION void std::swap ( wpi::util::WPI_BASIC_JSON_TPL & j1,
wpi::util::WPI_BASIC_JSON_TPL & j2 )
inlinenoexcept

exchanges the values of two JSON objects

See also
https://json.nlohmann.me/api/basic_json/std_swap/