Fix documentation to indicate key extractors can return the key by value

This commit is contained in:
Ion Gaztañaga
2017-02-06 13:20:58 +01:00
parent 47c8a19cfd
commit 6fe1181578
2 changed files with 11 additions and 5 deletions
+2 -2
View File
@@ -28,10 +28,10 @@ class MyClass : public set_base_hook<>
};
//key_of_value function object, must:
//- be default constructible (and lightweight)
//- be default constructible if the container constructor requires it
//- define the key type using "type"
//- define an operator() taking "const value_type&" and
// returning "const type &"
// returning "type" or "const type &"
struct first_int_is_key
{
typedef int type;