Coverage Report

Created: 2025-09-05 06:51

/src/boost/boost/container/detail/placement_new.hpp
Line
Count
Source
1
#ifndef BOOST_CONTAINER_DETAIL_PLACEMENT_NEW_HPP
2
#define BOOST_CONTAINER_DETAIL_PLACEMENT_NEW_HPP
3
///////////////////////////////////////////////////////////////////////////////
4
//
5
// (C) Copyright Ion Gaztanaga 2014-2015. Distributed under the Boost
6
// Software License, Version 1.0. (See accompanying file
7
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8
//
9
// See http://www.boost.org/libs/container for documentation.
10
//
11
///////////////////////////////////////////////////////////////////////////////
12
13
#include <cstddef>
14
15
struct boost_container_new_t{};
16
17
//avoid including <new>
18
inline void *operator new(std::size_t, void *p, boost_container_new_t)
19
1.57M
{  return p;  }
20
21
inline void operator delete(void *, void *, boost_container_new_t)
22
{}
23
24
#endif   //BOOST_CONTAINER_DETAIL_PLACEMENT_NEW_HPP