From 09c546f63a714d18eb42c0d6584a6f78c781d1da Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 5 Aug 2012 18:26:02 +0000 Subject: [PATCH] Unordered: Document more fine grained requirements. [SVN r79879] --- doc/ref.php | 48 ++++++++++++++- doc/ref.xml | 168 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 207 insertions(+), 9 deletions(-) diff --git a/doc/ref.php b/doc/ref.php index e336a55c..2971b5df 100644 --- a/doc/ref.php +++ b/doc/ref.php @@ -67,14 +67,20 @@ EOL; Key - Key must be Assignable and CopyConstructible. + Key must be Erasable from the container + (i.e. allocator_traits can destroy it). + Mapped - Mapped must be CopyConstructible + Mapped must be Erasable from the container + (i.e. allocator_traits can destroy it). + Value - Value must be Assignable and CopyConstructible + Value must be Erasable from the container + (i.e. allocator_traits can destroy it). + Hash @@ -206,6 +212,11 @@ EOL; Constructs an empty container with at least n buckets, using hf as the hash function, eq as the key equality predicate, a as the allocator and a maximum load factor of 1.0. + + If the defaults are used, hasher, key_equal and + allocator_type need to be DefaultConstructible. + +