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::containers
15 {
16 /** \addtogroup stlext_grp
17  * @{ */
18 
19 /** @name Trait helper classes for templatized selection of a std::map
20  implementation
21  @{ */
22 
23 /** Traits for using a std::map<> (sparse representation) \sa
24  * map_traits_map_as_vector */
26 {
27  template <class KEY, class VALUE, class _LessPred = std::less<KEY>,
28  class _Alloc =
29  mrpt::aligned_allocator_cpp11<std::pair<const KEY, VALUE>>>
30  struct map : public std::map<KEY, VALUE, _LessPred, _Alloc>
31  {
32  };
33 };
34 
35 /** Traits for using a mrpt::utils::map_as_vector<> (dense, fastest
36  * representation) \sa map_traits_stdmap */
38 {
39  template <class KEY, class VALUE, class _LessPred = std::less<KEY>,
40  class _Alloc =
41  mrpt::aligned_allocator_cpp11<std::pair<const KEY, VALUE>>>
42  struct map : public mrpt::containers::map_as_vector<KEY, VALUE>
43  {
44  };
45 };
46 
47 /** @} */
48 /** @} */ // end of grouping
49 
50 }
51 
A STL-like container which looks and behaves (almost exactly) like a std::map<> but is implemented as...
Definition: map_as_vector.h:57
Traits for using a std::map<> (sparse representation)
Definition: traits_map.h:25
Traits for using a mrpt::utils::map_as_vector<> (dense, fastest representation)
Definition: traits_map.h:37



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020