Imported Upstream version 1.57.0
[platform/upstream/boost.git] / boost / container / detail / placement_new.hpp
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // (C) Copyright Ion Gaztanaga 2014-2014. Distributed under the Boost
4 // Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // See http://www.boost.org/libs/container for documentation.
8 //
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef BOOST_CONTAINER_DETAIL_PLACEMENT_NEW_HPP
12 #define BOOST_CONTAINER_DETAIL_PLACEMENT_NEW_HPP
13
14 #if defined(_MSC_VER)
15 #  pragma once
16 #endif
17
18 struct boost_container_new_t{};
19
20 //avoid including <new>
21 inline void *operator new(std::size_t, void *p, boost_container_new_t)
22 {  return p;  }
23
24 inline void operator delete(void *, void *, boost_container_new_t)
25 {}
26
27 #endif   //BOOST_CONTAINER_DETAIL_PLACEMENT_NEW_HPP