tlx
BTree< Key, Value, KeyOfValue, Compare, Traits, Duplicates, Allocator >::value_compare Class Reference

Function class to compare value_type objects. Required by the STL. More...

#include <btree.hpp>

Public Member Functions

bool operator() (const value_type &x, const value_type &y) const
 Function call "less"-operator resulting in true if x < y. More...
 

Protected Member Functions

 value_compare (key_compare kc)
 Constructor called from BTree::value_comp() More...
 

Protected Attributes

key_compare key_comp
 Key comparison function from the template parameter. More...
 

Friends

class BTree< key_type, value_type, key_of_value, key_compare, traits, allow_duplicates, allocator_type >
 Friendly to the btree class so it may call the constructor. More...
 

Detailed Description

template<typename Key, typename Value, typename KeyOfValue, typename Compare = std::less<Key>, typename Traits = btree_default_traits<Key, Value>, bool Duplicates = false, typename Allocator = std::allocator<Value>>
class tlx::BTree< Key, Value, KeyOfValue, Compare, Traits, Duplicates, Allocator >::value_compare

Function class to compare value_type objects. Required by the STL.

Definition at line 1160 of file btree.hpp.

Constructor & Destructor Documentation

value_compare ( key_compare  kc)
inlineexplicitprotected

Constructor called from BTree::value_comp()

Definition at line 1167 of file btree.hpp.

Member Function Documentation

bool operator() ( const value_type x,
const value_type y 
) const
inline

Function call "less"-operator resulting in true if x < y.

Definition at line 1177 of file btree.hpp.

Friends And Related Function Documentation

Friendly to the btree class so it may call the constructor.

Definition at line 1173 of file btree.hpp.

Member Data Documentation

key_compare key_comp
protected

Key comparison function from the template parameter.

Definition at line 1164 of file btree.hpp.


The documentation for this class was generated from the following file: