Function to_string
Summary
#include "breeze/environment/windows_only/operating_system_id.hpp"
(1) std::string to_string(operating_system_id id)
#include "breeze/text/to_string.hpp"
(2) template <typename T>
std::string to_string(T const &object)
(3) template <typename OutputStreamable>
std::string to_string(OutputStreamable const &, std::locale const &loc)
Function overload
Synopsis
#include "breeze/environment/windows_only/operating_system_id.hpp"
std::string to_string(operating_system_id id)
Description
Converts an operating_system_id
to a std::string
. This overloads the general breeze:to_string()
template, since operating_system_id
is an enum
and can't have member functions.
Source
Line 93 in breeze/environment/windows_only/operating_system_id.hpp.
Synopsis
#include "breeze/text/to_string.hpp"
template <typename T>
std::string to_string(T const &object)
Description
- Returns
- The textual representation of its argument. If
T
has ato_string() const
member function taking no arguments, this template will use that. Otherwise, it will usebreeze::to_string( object, std::locale() )
, which requires a stream inserter.
Source
Line 33 in breeze/text/to_string.hpp.
Synopsis
#include "breeze/text/to_string.hpp"
template <typename OutputStreamable>
std::string to_string(OutputStreamable const &, std::locale const &loc)
Description
- Returns
- The textual representation of its argument. The representation depends, in general, on
loc
. This template requires a stream inserter. - Exceptions
- A
std::runtime_error
(or astd::bad_alloc
) if the conversion fails.
Source
Line 48 in breeze/text/to_string.hpp.