g4tools  5.4.0
Namespaces | Macros | Functions
vpair File Reference
#include <vector>
Include dependency graph for vpair:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 tools
 inlined C code : ///////////////////////////////////
 

Macros

#define tools_vpair
 

Functions

template<class K , class V >
void tools::add (std::vector< std::pair< K, V > > &a_vec, const K &a_key, const V &a_value)
 
template<class K , class V >
bool tools::find (const std::vector< std::pair< K, V > > &a_vec, const K &a_key, V &a_value)
 
template<class K , class V >
bool tools::rfind (const std::vector< std::pair< K, V > > &a_vec, const K &a_key, V &a_value)
 
template<class K , class V >
bool tools::is_key (const std::vector< std::pair< K, V > > &a_vec, const K &a_key)
 
template<class K , class V >
bool tools::find_key (const std::vector< std::pair< K, V > > &a_vec, const V &a_value, K &a_key)
 
template<class K , class V >
void tools::sort_by_second (std::vector< std::pair< K, V > > &a_vec)
 
template<class K , class V >
bool tools::remove (std::vector< std::pair< K, V > > &a_vec, const K &a_key)
 
template<class K , class V >
bool tools::remove (std::vector< std::pair< K, V > > &a_vec, const K &a_key, bool a_delete)
 

Macro Definition Documentation

◆ tools_vpair

#define tools_vpair

Definition at line 5 of file vpair.