3.0.0
Freundlich's C++ toolkit
Public Member Functions
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< Type >::value)
 
movableoperator= (movable &&) noexcept(std::is_nothrow_move_assignable< Type >::value)
 
 ~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 ( )

◆ value() [2/2]

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