Sha256: dd5045e09e85281aec105e6f00c1e9313774944968a46017505525876ddaa90e

Contents?: true

Size: 1.67 KB

Versions: 28

Compression:

Stored size: 1.67 KB

Contents

/*
Copyright 2012-2017 Glen Joseph Fernandes
(glenjofe@gmail.com)

Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_SMART_PTR_MAKE_SHARED_ARRAY_HPP
#define BOOST_SMART_PTR_MAKE_SHARED_ARRAY_HPP

#include <boost/smart_ptr/allocate_shared_array.hpp>

namespace boost {

template<class T>
inline typename detail::sp_if_size_array<T>::type
make_shared()
{
    return boost::allocate_shared<T>(std::allocator<typename
        detail::sp_array_scalar<T>::type>());
}

template<class T>
inline typename detail::sp_if_size_array<T>::type
make_shared(const typename detail::sp_array_element<T>::type& value)
{
    return boost::allocate_shared<T>(std::allocator<typename
        detail::sp_array_scalar<T>::type>(), value);
}

template<class T>
inline typename detail::sp_if_array<T>::type
make_shared(std::size_t size)
{
    return boost::allocate_shared<T>(std::allocator<typename
        detail::sp_array_scalar<T>::type>(), size);
}

template<class T>
inline typename detail::sp_if_array<T>::type
make_shared(std::size_t size,
    const typename detail::sp_array_element<T>::type& value)
{
    return boost::allocate_shared<T>(std::allocator<typename
        detail::sp_array_scalar<T>::type>(), size, value);
}

template<class T>
inline typename detail::sp_if_size_array<T>::type
make_shared_noinit()
{
    return allocate_shared_noinit<T>(std::allocator<typename
        detail::sp_array_scalar<T>::type>());
}

template<class T>
inline typename detail::sp_if_array<T>::type
make_shared_noinit(std::size_t size)
{
    return allocate_shared_noinit<T>(std::allocator<typename
        detail::sp_array_scalar<T>::type>(), size);
}

} /* boost */

#endif

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
passenger-6.0.7 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-6.0.6 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-6.0.5 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-6.0.4 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-6.0.3 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-6.0.2 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-6.0.1 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-6.0.0 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-5.3.7 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-5.3.6 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-5.3.5 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-5.3.4 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-5.3.3 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-5.3.2 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-5.3.1 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-5.3.0 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-5.2.3 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-5.2.2 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-5.2.1 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp
passenger-5.2.0 src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp