Libthreadar 1.6.0
tools.hpp
Go to the documentation of this file.
1/*********************************************************************/
2// libthreadar - is a library providing several C++ classes to work with threads
3// Copyright (C) 2014-2025 Denis Corbin
4//
5// This file is part of libthreadar
6//
7// libthreadar is free software: you can redistribute it and/or modify
8// it under the terms of the GNU Lesser General Public License as published by
9// the Free Software Foundation, either version 3 of the License, or
10// (at your option) any later version.
11//
12// libhtreadar is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU Lesser General Public License for more details.
16//
17// You should have received a copy of the GNU Lesser General Public License
18// along with libthreadar. If not, see <http://www.gnu.org/licenses/>
19//
20//----
21// to contact the author: dar.linux@free.fr
22/*********************************************************************/
23
24#ifndef LIBTHREADAR_TOOLS_HPP
25#define LIBTHREADAR_TOOLS_HPP
26
29
30#include "config.h"
31
32 // C system headers
33extern "C"
34{
35}
36 // C++ standard headers
37#include <sstream>
38
39 // libthreadar headers
40
41namespace libthreadar
42{
43 template <class T> std::string tools_convert_to_string(T val)
44 {
45 std::stringstream tmp;
46 tmp << val;
47 return tmp.str();
48 }
49
50} // end of namespace
51
52#endif
This is the only namespace used in libthreadar and all symbols provided by libthreadar are member of ...
Definition: barrier.hpp:46