| Server IP : 217.160.0.135 / Your IP : 216.73.216.79 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/include/boost/icl/type_traits/ |
Upload File : |
/*-----------------------------------------------------------------------------+
Copyright (c) 2007-2009: Joachim Faulhaber
+------------------------------------------------------------------------------+
Copyright (c) 1999-2006: Cortex Software GmbH, Kantstrasse 57, Berlin
+------------------------------------------------------------------------------+
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENCE.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
+-----------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------
Function-templates for discrete Datatypes like int, unsigned or
any class that provides a ++ operator c.f. iterators
-----------------------------------------------------------------------------*/
#ifndef BOOST_ICL_TO_STRING_HPP_JOFA_000712
#define BOOST_ICL_TO_STRING_HPP_JOFA_000712
#include <stdio.h>
#include <string>
#include <sstream>
namespace boost{ namespace icl
{
/// Static class template for the string representation of values
template <class Type>
struct to_string
{
/** Converts all values of types to std::string that implement an operator << */
static std::string apply(const Type& value)
{
std::stringstream repr;
repr << value;
return repr.str();
}
};
}} // namespace boost icl
#endif