build: tighten up some unneeded headers

This commit is contained in:
Danny Robson 2016-02-25 13:17:14 +11:00
parent 46e1ac8e68
commit 7adf63413d
5 changed files with 7 additions and 8 deletions

View File

@ -17,9 +17,8 @@
#ifndef __UTIL_ADAPTER_HPP
#define __UTIL_ADAPTER_HPP
#include <cstdlib>
#include <cstddef>
#include <iterator>
#include <utility>
#include <tuple>
namespace util { namespace adapter {

View File

@ -17,8 +17,7 @@
#ifndef __UTIL_ALLOC_ALLOCATOR_HPP
#define __UTIL_ALLOC_ALLOCATOR_HPP
#include <cstdlib>
#include <utility>
#include <cstddef>
// C++11 allocator concept conformant allocator adaptor, going from our
// allocator interface to that of the STL and friends.
@ -31,8 +30,8 @@ namespace util { namespace alloc {
template <typename ...Args>
allocator (Args&& ...args);
T* allocate (std::size_t count);
void deallocate (T*, std::size_t count);
T* allocate (size_t count);
void deallocate (T*, size_t count);
private:
B &m_backing;

View File

@ -21,6 +21,7 @@
#define __UTIL_ALLOC_ALLOCATOR_IPP
#include <utility>
///////////////////////////////////////////////////////////////////////////////
template <class B, class T>

View File

@ -17,9 +17,10 @@
#ifndef __UTIL_ALLOC_ARENA_HPP
#define __UTIL_ALLOC_ARENA_HPP
#include <memory>
#include "../memory/deleter.hpp"
#include <memory>
#include <utility>
namespace util { namespace alloc {
template <class T>

View File

@ -19,7 +19,6 @@
#include <cstddef>
namespace util { namespace alloc {
// allocate progressively across a buffer without concern for deallocation.
// deallocation is a noop; the only way to free allocations is via reset.