Main MRPT website > C++ reference for MRPT 1.9.9
traits_map.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
13 
14 namespace mrpt
15 {
16 namespace containers
17 {
18 /** \addtogroup stlext_grp
19  * @{ */
20 
21 /** @name Trait helper classes for templatized selection of a std::map
22  implementation
23  @{ */
24 
25 /** Traits for using a std::map<> (sparse representation) \sa
26  * map_traits_map_as_vector */
28 {
29  template <class KEY, class VALUE, class _LessPred = std::less<KEY>,
30  class _Alloc =
31  mrpt::aligned_allocator_cpp11<std::pair<const KEY, VALUE>>>
32  struct map : public std::map<KEY, VALUE, _LessPred, _Alloc>
33  {
34  };
35 };
36 
37 /** Traits for using a mrpt::utils::map_as_vector<> (dense, fastest
38  * representation) \sa map_traits_stdmap */
40 {
41  template <class KEY, class VALUE, class _LessPred = std::less<KEY>,
42  class _Alloc =
43  mrpt::aligned_allocator_cpp11<std::pair<const KEY, VALUE>>>
44  struct map : public mrpt::containers::map_as_vector<KEY, VALUE>
45  {
46  };
47 };
48 
49 /** @} */
50 /** @} */ // end of grouping
51 
52 } // namespace containers
53 } // namespace mrpt
aligned_allocator.h
mrpt::containers::map_traits_stdmap
Traits for using a std::map<> (sparse representation)
Definition: traits_map.h:27
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
map_as_vector.h
mrpt::containers::map_traits_map_as_vector
Traits for using a mrpt::utils::map_as_vector<> (dense, fastest representation)
Definition: traits_map.h:39
mrpt::containers::map_traits_stdmap::map
Definition: traits_map.h:32
mrpt::containers::map_as_vector
A STL-like container which looks and behaves (almost exactly) like a std::map<> but is implemented as...
Definition: map_as_vector.h:59
mrpt::containers::map_traits_map_as_vector::map
Definition: traits_map.h:44



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST