Rosetta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
map_util.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available
6 // (c) under license. The Rosetta software is developed by the contributing
7 // (c) members of the Rosetta Commons. For more information, see
8 // (c) http://www.rosettacommons.org. Questions about this can be addressed to
9 // (c) University of Washington UW TechTransfer,email:license@u.washington.edu.
10 
11 /// @file utility/map_util.hh
12 /// @brief Utility functions for std::maps
13 /// @author Jared Adolf-Bryfogle (jadolfbr@gmail.com)
14 
15 #ifndef INCLUDED_utility_util_hh
16 #define INCLUDED_utility_util_hh
17 
18 #include <map>
19 
20 namespace utility {
21 
22 
23 /// @brief Does the map have the key?
24 template < class T >
25 bool
26 has_key(std::map< T, T > const & a_map, T const & key);
27 
28 
29 } //utility
30 
31 
32 #endif //utility_util_hh
33 
bool has_key(std::map< T, T > a_map, T key)
Definition: map_util.cc:20
utility::keys::lookup::key< KeyType > const key