Update documentation and conditionally include headers in noinit_adaptor.hpp

This commit is contained in:
Glen Fernandes
2019-05-02 07:43:55 -04:00
parent 836ae6917d
commit ce05d650dc
3 changed files with 8 additions and 1 deletions

View File

@ -81,6 +81,9 @@ template<class T, class U>
bool operator!=(const noinit_adaptor<T>& lhs,
const noinit_adaptor<U>& rhs) noexcept;
template<class A>
noinit_adaptor<A> noinit_adapt(const A& a) noexcept;
} /* boost */
```

View File

@ -9,9 +9,13 @@ Distributed under the Boost Software License, Version 1.0.
#define BOOST_CORE_NOINIT_ADAPTOR_HPP
#include <boost/config.hpp>
#if !defined(BOOST_NO_CXX11_ALLOCATOR)
#include <memory>
#endif
#include <new>
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#include <utility>
#endif
namespace boost {

View File

@ -6,8 +6,8 @@ Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/core/default_allocator.hpp>
#include <boost/core/noinit_adaptor.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/core/noinit_adaptor.hpp>
#include <vector>
template<class T>