MRPT
2.0.4
mrpt
containers
traits_map.h
Go to the documentation of this file.
1
/* +------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| https://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6
| See: https://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See: https://www.mrpt.org/License |
8
+------------------------------------------------------------------------+ */
9
#pragma once
10
11
#include <
mrpt/containers/map_as_vector.h
>
12
13
namespace
mrpt::containers
14
{
15
/** \addtogroup stlext_grp
16
* @{ */
17
18
/** @name Trait helper classes for templatized selection of a std::map
19
implementation
20
@{ */
21
22
/** Traits for using a std::map<> (sparse representation) \sa
23
* map_traits_map_as_vector */
24
struct
map_traits_stdmap
25
{
26
template
<
class
KEY,
class
VALUE>
27
using
map
= std::map<KEY, VALUE>;
28
};
29
30
/** Traits for using a mrpt::containers::map_as_vector<> (dense, fastest
31
* representation) \sa map_traits_stdmap */
32
struct
map_traits_map_as_vector
33
{
34
template
<
class
KEY,
class
VALUE>
35
using
map
=
mrpt::containers::map_as_vector<KEY, VALUE>
;
36
};
37
38
/** @} */
39
/** @} */
// end of grouping
40
41
}
// namespace mrpt::containers
mrpt::containers::map_traits_stdmap
Traits for using a std::map<> (sparse representation)
Definition:
traits_map.h:24
mrpt::containers::map_traits_stdmap::map
std::map< KEY, VALUE > map
Definition:
traits_map.h:27
map_as_vector.h
mrpt::containers::map_traits_map_as_vector
Traits for using a mrpt::containers::map_as_vector<> (dense, fastest representation)
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:55
mrpt::containers
Definition:
bimap.h:14
Page generated by
Doxygen 1.8.17
for MRPT 2.0.4 at Sat Jun 27 14:00:59 UTC 2020