4.6.1
Freundlich's C++ toolkit
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Concepts
fcppt::catch_::movable< Type > Class Template Reference

Detailed Description

template<typename Type>
class fcppt::catch_::movable< Type >

A movable-only type.

This type can be used to test if code also works with types that cannot be copied. It provides an output and a comparison operator.

Public Member Functions

 movable (Type const &)
 
 movable (Type &&)
 
 movable (movable &&) noexcept(std::is_nothrow_move_constructible_v< Type >)
 
movableoperator= (movable &&) noexcept(std::is_nothrow_move_assignable_v< Type >)
 
 ~movable ()
 
Type & value ()
 
Type const & value () const
 

Constructor & Destructor Documentation

◆ movable() [1/3]

template<typename Type>
fcppt::catch_::movable< Type >::movable ( Type const & )
explicit

◆ movable() [2/3]

template<typename Type>
fcppt::catch_::movable< Type >::movable ( Type && )
explicit

◆ movable() [3/3]

template<typename Type>
fcppt::catch_::movable< Type >::movable ( movable< Type > && ) const
noexcept

◆ ~movable()

template<typename Type>
fcppt::catch_::movable< Type >::~movable ( )

Member Function Documentation

◆ operator=()

template<typename Type>
movable & fcppt::catch_::movable< Type >::operator= ( movable< Type > && )
noexcept

◆ value() [1/2]

template<typename Type>
Type & fcppt::catch_::movable< Type >::value ( )
nodiscard

◆ value() [2/2]

template<typename Type>
Type const & fcppt::catch_::movable< Type >::value ( ) const
nodiscard