ProtoAllocator.qbk 855 B

12345678910111213141516171819
  1. [/
  2. / Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  3. /
  4. / Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. /]
  7. [section:ProtoAllocator Proto-allocator requirements]
  8. A type `A` meets the proto-allocator requirements if `A` is `CopyConstructible`
  9. (C++Std [copyconstructible]), `Destructible` (C++Std [destructible]), and
  10. `allocator_traits<A>::rebind_alloc<U>` meets the allocator requirements (C++Std
  11. [allocator.requirements]), where `U` is an object type. [inline_note For
  12. example, `std::allocator<void>` meets the proto-allocator requirements but not
  13. the allocator requirements.] No constructor, comparison operator, copy
  14. operation, move operation, or swap operation on these types shall exit via an
  15. exception.
  16. [endsect]