io_utils.h File Reference
#include <algorithm>
#include <functional>
#include <limits>
#include <sstream>
#include <string>
Include dependency graph for io_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mc_rtc
 
 mc_rtc::io
 

Functions

template<typename Container , typename std::enable_if<!std::is_arithmetic< typename Container::value_type >::value, int >::type = 0>
std::string mc_rtc::io::to_string (const Container &c, const std::string &delimiter=", ")
 
template<typename Container , typename std::enable_if< std::is_arithmetic< typename Container::value_type >::value, int >::type = 0>
std::string mc_rtc::io::to_string (const Container &c, const std::string &delimiter=", ", const unsigned precision=std::numeric_limits< typename Container::value_type >::digits10)
 Variant of to_string that converts numeric types to string. More...
 
template<typename Container , typename Callback , typename std::enable_if<!std::is_convertible< Callback, std::string >::value, int >::type = 0>
std::string mc_rtc::io::to_string (const Container &c, Callback &&get_value, const std::string &delimiter=", ")