Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
make_unique.hpp File Reference

Defines "make_unique" functions, which are factories to create instances of unique_ptr depending on the passed arguments. More...

#include <boost/move/detail/config_begin.hpp>
#include <boost/move/detail/workaround.hpp>
#include <boost/move/utility_core.hpp>
#include <boost/move/unique_ptr.hpp>
#include <cstddef>
#include <boost/move/detail/unique_ptr_meta_utils.hpp>
#include <boost/move/detail/config_end.hpp>
Include dependency graph for make_unique.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  boost::move_upmu::unique_ptr_if< T >
 
struct  boost::move_upmu::unique_ptr_if< T[]>
 
struct  boost::move_upmu::unique_ptr_if< T[N]>
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::move_upmu
 
 boost::movelib
 

Functions

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) 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::movelib::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::movelib::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::movelib::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...
 

Detailed Description

Defines "make_unique" functions, which are factories to create instances of unique_ptr depending on the passed arguments.

This header can be a bit heavyweight in C++03 compilers due to the use of the preprocessor library, that's why it's a a separate header from unique_ptr.hpp