PrevUpHomeNext

Struct template inplace_allocator

detail::inplace_allocator

Synopsis

// In header: <detail/inplace.hpp>

template<typename T = void> 
struct inplace_allocator {
  // types
  typedef T value_type;

  // public member functions
  T * allocate(std::size_t) const;
  constexpr void deallocate(T *, size_t) const noexcept;
  constexpr bool operator==(const inplace_allocator &) const noexcept;
  constexpr bool operator!=(const inplace_allocator &) const noexcept;
};

Description

inplace_allocator public member functions

  1. T * allocate(std::size_t) const;
  2. constexpr void deallocate(T *, size_t) const noexcept;
  3. constexpr bool operator==(const inplace_allocator &) const noexcept;
  4. constexpr bool operator!=(const inplace_allocator &) const noexcept;

PrevUpHomeNext