VCCC  2024.05
VisualCamp Common C++ library
swap.h File Reference
#include <algorithm>
#include <type_traits>
#include <utility>
#include "vccc/__optional/forward_declare.h"
#include "vccc/__type_traits/conjunction.hpp"
#include "vccc/__type_traits/is_swappable.hpp"

Go to the source code of this file.

Namespaces

 std
 

Functions

template<typename T , ::std::enable_if_t< ::std::is_move_constructible< T >::value &&::vccc::is_swappable< T >::value, int > = 0>
void swap (::vccc::optional< T > &lhs, ::vccc::optional< T > &rhs) noexcept(noexcept(lhs.swap(rhs)))