Go to the documentation of this file.
26 template <
class T,
class CONTAINER>
32 return std::string::npos;
41 return cont.erase(it);
44 template <
class K,
class V>
54 template <
class K,
class V>
112 cout <<
"List " << i + 1 <<
"/" <<
t.size() << endl <<
"\t";
123 template <
class T1,
class T2>
125 const std::map<T1, T2>& m,
const std::string& sep =
" => ")
133 ss << it->first <<
" => " << it->second << endl;
142 template <
class T1,
class T2>
const Scalar * const_iterator
void printSTLContainer(const T &t)
Print the given vector t.
std::string getSTLContainerAsString(const T &t)
Return a STL container in std::string form.
std::string getMapAsString(const std::map< T1, T2 > &m, const std::string &sep=" => ")
Return contents of map in a string representation.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
double distance(const TPoint2D &p1, const TPoint2D &p2)
Gets the distance between two points in a 2D space.
void printMap(const std::map< T1, T2 > &m)
Print the given map m.
void printSTLContainerOfContainers(const T &t)
Print the given STL container of containers t.
std::list< T >::iterator erase_return_next(std::list< T > &cont, typename std::list< T >::iterator &it)
Calls the standard "erase" method of a STL container, but also returns an iterator to the next elemen...
size_t find_in_vector(const T &value, const CONTAINER &vect)
Returns the index of the value "T" in the container "vect" (std::vector,std::deque,...
GLsizei const GLfloat * value
GLsizei const GLchar ** string
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 | |