Base class for basic_valid_if, storing the conditionally valid value. More...
#include <eagine/valid_if/base.hpp>
Public Member Functions | |
constexpr | basic_valid_if_value (T value) noexcept(noexcept(T(std::declval< T && >()))) |
Initializing constructor. | |
constexpr | basic_valid_if_value () noexcept(std::is_nothrow_default_constructible_v< T >)=default |
Default constructor. | |
constexpr | basic_valid_if_value (basic_valid_if_value &&) noexcept(std::is_nothrow_move_constructible_v< T >)=default |
Move constructor. | |
constexpr | basic_valid_if_value (const basic_valid_if_value &) noexcept(std::is_nothrow_copy_constructible_v< T >)=default |
Copy constructor. | |
auto | operator= (basic_valid_if_value &&) noexcept(std::is_nothrow_move_assignable_v< T >) -> basic_valid_if_value &=default |
Move assignment operator. | |
auto | operator= (const basic_valid_if_value &) noexcept(std::is_nothrow_copy_assignable_v< T >) -> basic_valid_if_value &=default |
Copy assignment operator. | |
~basic_valid_if_value () noexcept=default | |
The destructor. | |
auto | operator= (const T &v) -> auto & |
Copies v to the stored value. | |
auto | operator= (T &&v) -> auto & |
Moves v to the stored value. | |
Base class for basic_valid_if, storing the conditionally valid value.