Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Function template convert_string_type

boost::date_time::convert_string_type — Converts a string from one value_type to another.

Synopsis

// In header: <boost/date_time/string_convert.hpp>


template<typename InputT, typename OutputT> 
  std::basic_string< OutputT > 
  convert_string_type(const std::basic_string< InputT > & inp_str);

Description

Converts a wstring to a string (or a string to wstring). If both template parameters are of same type, a copy of the input string is returned.


PrevUpHomeNext