Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::movelib Namespace Reference

Classes

struct  default_delete
 The class template default_delete serves as the default deleter (destruction policy) for the class template unique_ptr. More...
 
class  unique_ptr
 A unique pointer is an object that owns another object and manages that other object through a pointer. More...
 

Functions

template<class T , class... Args>
 BOOST_MOVE_DOC1ST (unique_ptr< T >, typename::boost::move_upmu::unique_ptr_if< T >::t_is_not_array) make_unique(BOOST_FWD_REF(Args)...args)
 Remarks: This function shall not participate in overload resolution unless T is not an array. More...
 
template<class T >
 BOOST_MOVE_DOC1ST (unique_ptr< T >, typename::boost::move_upmu::unique_ptr_if< T >::t_is_not_array) make_unique_definit()
 Remarks: This function shall not participate in overload resolution unless T is not an array. More...
 
template<class T >
 BOOST_MOVE_DOC1ST (unique_ptr< T >, typename::boost::move_upmu::unique_ptr_if< T >::t_is_array_of_unknown_bound) make_unique(std
 Remarks: This function shall not participate in overload resolution unless T is an array of unknown bound. More...
 
template<class T , class... Args>
 BOOST_MOVE_DOC1ST (unspecified, typename::boost::move_upmu::unique_ptr_if< T >::t_is_array_of_known_bound) make_unique(BOOST_FWD_REF(Args)...)=delete
 Remarks: This function shall not participate in overload resolution unless T is an array of known bound. More...
 
template<class T , class D >
void swap (unique_ptr< T, D > &x, unique_ptr< T, D > &y) BOOST_NOEXCEPT
 Effects: Calls x.swap(y). More...
 
template<class T1 , class D1 , class T2 , class D2 >
bool operator== (const unique_ptr< T1, D1 > &x, const unique_ptr< T2, D2 > &y)
 Returns: x.get() == y.get(). More...
 
template<class T1 , class D1 , class T2 , class D2 >
bool operator!= (const unique_ptr< T1, D1 > &x, const unique_ptr< T2, D2 > &y)
 Returns: x.get() != y.get(). More...
 
template<class T1 , class D1 , class T2 , class D2 >
bool operator< (const unique_ptr< T1, D1 > &x, const unique_ptr< T2, D2 > &y)
 Returns: x.get() < y.get(). More...
 
template<class T1 , class D1 , class T2 , class D2 >
bool operator<= (const unique_ptr< T1, D1 > &x, const unique_ptr< T2, D2 > &y)
 Returns: !(y < x). More...
 
template<class T1 , class D1 , class T2 , class D2 >
bool operator> (const unique_ptr< T1, D1 > &x, const unique_ptr< T2, D2 > &y)
 Returns: y < x. More...
 
template<class T1 , class D1 , class T2 , class D2 >
bool operator>= (const unique_ptr< T1, D1 > &x, const unique_ptr< T2, D2 > &y)
 Returns:!(x < y). More...
 
template<class T , class D >
bool operator== (const unique_ptr< T, D > &x, BOOST_MOVE_DOC0PTR(bmupd::nullptr_type)) BOOST_NOEXCEPT
 Returns:!x. More...
 
template<class T , class D >
bool operator== (BOOST_MOVE_DOC0PTR(bmupd::nullptr_type), const unique_ptr< T, D > &x) BOOST_NOEXCEPT
 Returns:!x. More...
 
template<class T , class D >
bool operator!= (const unique_ptr< T, D > &x, BOOST_MOVE_DOC0PTR(bmupd::nullptr_type)) BOOST_NOEXCEPT
 Returns: (bool)x. More...
 
template<class T , class D >
bool operator!= (BOOST_MOVE_DOC0PTR(bmupd::nullptr_type), const unique_ptr< T, D > &x) BOOST_NOEXCEPT
 Returns: (bool)x. More...
 
template<class T , class D >
bool operator< (const unique_ptr< T, D > &x, BOOST_MOVE_DOC0PTR(bmupd::nullptr_type))
 Requires: operator shall induce a strict weak ordering on unique_ptr<T, D>::pointer values. More...
 
template<class T , class D >
bool operator< (BOOST_MOVE_DOC0PTR(bmupd::nullptr_type), const unique_ptr< T, D > &x)
 Requires: operator shall induce a strict weak ordering on unique_ptr<T, D>::pointer values. More...
 
template<class T , class D >
bool operator> (const unique_ptr< T, D > &x, BOOST_MOVE_DOC0PTR(bmupd::nullptr_type))
 Returns: nullptr < x. More...
 
template<class T , class D >
bool operator> (BOOST_MOVE_DOC0PTR(bmupd::nullptr_type), const unique_ptr< T, D > &x)
 Returns: x < nullptr. More...
 
template<class T , class D >
bool operator<= (const unique_ptr< T, D > &x, BOOST_MOVE_DOC0PTR(bmupd::nullptr_type))
 Returns: !(nullptr < x). More...
 
template<class T , class D >
bool operator<= (BOOST_MOVE_DOC0PTR(bmupd::nullptr_type), const unique_ptr< T, D > &x)
 Returns: !(x < nullptr). More...
 
template<class T , class D >
bool operator>= (const unique_ptr< T, D > &x, BOOST_MOVE_DOC0PTR(bmupd::nullptr_type))
 Returns: !(x < nullptr). More...
 
template<class T , class D >
bool operator>= (BOOST_MOVE_DOC0PTR(bmupd::nullptr_type), const unique_ptr< T, D > &x)
 Returns: !(nullptr < x). More...
 

Function Documentation

template<class T , class... Args>
boost::movelib::BOOST_MOVE_DOC1ST ( unique_ptr< T ,
typename::boost::move_upmu::unique_ptr_if< T >::t_is_not_array   
)
inline

Remarks: This function shall not participate in overload resolution unless T is not an array.

Returns: unique_ptr<T>(new T(std::forward<Args>(args)...)).

Returns: unique_ptr<T>(new T(std::nothrow)(std::forward<Args>(args)...)).

References T.

template<class T >
boost::movelib::BOOST_MOVE_DOC1ST ( unique_ptr< T ,
typename::boost::move_upmu::unique_ptr_if< T >::t_is_not_array   
)
inline

Remarks: This function shall not participate in overload resolution unless T is not an array.

Returns: unique_ptr<T>(new T) (default initialization)

Returns: unique_ptr<T>(new T(std::nothrow) (default initialization)

References T.

template<class T >
boost::movelib::BOOST_MOVE_DOC1ST ( unique_ptr< T ,
typename::boost::move_upmu::unique_ptr_if< T >::t_is_array_of_unknown_bound   
)
inline

Remarks: This function shall not participate in overload resolution unless T is an array of unknown bound.

Returns: unique_ptr<T>(new remove_extent_t<T>[n]()) (value initialization)

Returns: unique_ptr<T>(new (std::nothrow)remove_extent_t<T>[n]()) (value initialization)

Returns: unique_ptr<T>(new remove_extent_t<T>[n]) (default initialization)

Returns: unique_ptr<T>(new (std::nothrow)remove_extent_t<T>[n]) (default initialization)

References boost::n, and boost::detail::type.

template<class T , class... Args>
boost::movelib::BOOST_MOVE_DOC1ST ( unspecified  ,
typename::boost::move_upmu::unique_ptr_if< T >::t_is_array_of_known_bound   
)
inlinedelete

Remarks: This function shall not participate in overload resolution unless T is an array of known bound.

template<class T1 , class D1 , class T2 , class D2 >
bool boost::movelib::operator!= ( const unique_ptr< T1, D1 > &  x,
const unique_ptr< T2, D2 > &  y 
)
inline

Returns: x.get() != y.get().

template<class T , class D >
bool boost::movelib::operator!= ( const unique_ptr< T, D > &  x,
BOOST_MOVE_DOC0PTR(bmupd::nullptr_type)   
)
inline

Returns: (bool)x.

References boost::flyweights::x.

template<class T , class D >
bool boost::movelib::operator!= ( BOOST_MOVE_DOC0PTR(bmupd::nullptr_type)  ,
const unique_ptr< T, D > &  x 
)
inline

Returns: (bool)x.

References boost::flyweights::x.

template<class T1 , class D1 , class T2 , class D2 >
bool boost::movelib::operator< ( const unique_ptr< T1, D1 > &  x,
const unique_ptr< T2, D2 > &  y 
)
inline

Returns: x.get() < y.get().

Remarks: This comparison shall induce a strict weak ordering betwen pointers.

References boost::polygon::y().

template<class T , class D >
bool boost::movelib::operator< ( const unique_ptr< T, D > &  x,
BOOST_MOVE_DOC0PTR(bmupd::nullptr_type)   
)
inline

Requires: operator shall induce a strict weak ordering on unique_ptr<T, D>::pointer values.

Returns: Returns x.get() < pointer().

template<class T , class D >
bool boost::movelib::operator< ( BOOST_MOVE_DOC0PTR(bmupd::nullptr_type)  ,
const unique_ptr< T, D > &  x 
)
inline

Requires: operator shall induce a strict weak ordering on unique_ptr<T, D>::pointer values.

Returns: Returns pointer() < x.get().

template<class T1 , class D1 , class T2 , class D2 >
bool boost::movelib::operator<= ( const unique_ptr< T1, D1 > &  x,
const unique_ptr< T2, D2 > &  y 
)
inline

Returns: !(y < x).

References boost::flyweights::x, and boost::polygon::y().

template<class T , class D >
bool boost::movelib::operator<= ( const unique_ptr< T, D > &  x,
BOOST_MOVE_DOC0PTR(bmupd::nullptr_type)   
)
inline

Returns: !(nullptr < x).

References boost::move_upd::nullptr_type, and boost::flyweights::x.

template<class T , class D >
bool boost::movelib::operator<= ( BOOST_MOVE_DOC0PTR(bmupd::nullptr_type)  ,
const unique_ptr< T, D > &  x 
)
inline

Returns: !(x < nullptr).

References boost::move_upd::nullptr_type.

template<class T1 , class D1 , class T2 , class D2 >
bool boost::movelib::operator== ( const unique_ptr< T1, D1 > &  x,
const unique_ptr< T2, D2 > &  y 
)
inline

Returns: x.get() == y.get().

template<class T , class D >
bool boost::movelib::operator== ( const unique_ptr< T, D > &  x,
BOOST_MOVE_DOC0PTR(bmupd::nullptr_type)   
)
inline

Returns:!x.

References boost::flyweights::x.

template<class T , class D >
bool boost::movelib::operator== ( BOOST_MOVE_DOC0PTR(bmupd::nullptr_type)  ,
const unique_ptr< T, D > &  x 
)
inline

Returns:!x.

References boost::flyweights::x.

template<class T1 , class D1 , class T2 , class D2 >
bool boost::movelib::operator> ( const unique_ptr< T1, D1 > &  x,
const unique_ptr< T2, D2 > &  y 
)
inline

Returns: y < x.

References boost::flyweights::x.

template<class T , class D >
bool boost::movelib::operator> ( const unique_ptr< T, D > &  x,
BOOST_MOVE_DOC0PTR(bmupd::nullptr_type)   
)
inline

Returns: nullptr < x.

template<class T , class D >
bool boost::movelib::operator> ( BOOST_MOVE_DOC0PTR(bmupd::nullptr_type)  ,
const unique_ptr< T, D > &  x 
)
inline

Returns: x < nullptr.

template<class T1 , class D1 , class T2 , class D2 >
bool boost::movelib::operator>= ( const unique_ptr< T1, D1 > &  x,
const unique_ptr< T2, D2 > &  y 
)
inline

Returns:!(x < y).

References boost::polygon::y().

template<class T , class D >
bool boost::movelib::operator>= ( const unique_ptr< T, D > &  x,
BOOST_MOVE_DOC0PTR(bmupd::nullptr_type)   
)
inline

Returns: !(x < nullptr).

References boost::move_upd::nullptr_type.

template<class T , class D >
bool boost::movelib::operator>= ( BOOST_MOVE_DOC0PTR(bmupd::nullptr_type)  ,
const unique_ptr< T, D > &  x 
)
inline

Returns: !(nullptr < x).

References boost::move_upd::nullptr_type, and boost::flyweights::x.

template<class T , class D >
void boost::movelib::swap ( unique_ptr< T, D > &  x,
unique_ptr< T, D > &  y 
)
inline

Effects: Calls x.swap(y).

References boost::flyweights::x, and boost::polygon::y().