mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 22:14:26 +02:00
Add placement new operator to avoid <new> unnecessarily.
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
|
#ifndef BOOST_CONTAINER_DETAIL_PLACEMENT_NEW_HPP
|
||||||
|
#define BOOST_CONTAINER_DETAIL_PLACEMENT_NEW_HPP
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// (C) Copyright Ion Gaztanaga 2014-2014. Distributed under the Boost
|
// (C) Copyright Ion Gaztanaga 2014-2015. Distributed under the Boost
|
||||||
// Software License, Version 1.0. (See accompanying file
|
// Software License, Version 1.0. (See accompanying file
|
||||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
@@ -8,9 +10,6 @@
|
|||||||
//
|
//
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef BOOST_CONTAINER_DETAIL_PLACEMENT_NEW_HPP
|
|
||||||
#define BOOST_CONTAINER_DETAIL_PLACEMENT_NEW_HPP
|
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
# pragma once
|
# pragma once
|
||||||
#endif
|
#endif
|
||||||
|
@@ -250,14 +250,3 @@ int main()
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
//#include <boost/container/vector.hpp>
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
boost::container::vector<int> a;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
Reference in New Issue
Block a user