CASM  1.1.0
A Clusters Approach to Statistical Mechanics
string_io.hh File Reference
#include <map>
#include <set>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

 CASM
 Main CASM namespace.
 

Functions

std::string CASM::to_string (const std::string &s, std::string begin="\"", std::string end="\"")
 
template<typename T1 , typename T2 >
std::string CASM::to_string (const std::pair< T1, T2 > &value)
 
template<typename Iterator >
std::string CASM::container_to_string (Iterator begin_it, Iterator end_it, std::string begin="[", std::string end="]", std::string delim=", ")
 
template<class T >
std::string CASM::to_string (const std::vector< T > &container, std::string begin="[", std::string end="]", std::string delim=", ")
 
template<class T , class Compare >
std::string CASM::to_string (const std::set< T, Compare > &container, std::string begin="[", std::string end="]", std::string delim=", ")
 
template<class Key , class T , class Compare >
std::string CASM::to_string (const std::map< T, Key, Compare > &container, std::string begin="{", std::string end="}", std::string delim=", ")