General Utility Library for C++14  2.11
Classes | Namespaces | Functions
cat.h File Reference

Detailed Description

Declaration of the overload set for cat() and of the associated class ConvertingStringView.

Author
General Utility Library Contributors
Date
Created on August 31, 2018

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the license, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see https://www.gnu.org/licenses/.

#include <string>
#include <type_traits>
#include "gul14/internal.h"
#include "gul14/string_view.h"
Include dependency graph for cat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  gul14::ConvertingStringView
 A string view that can automatically convert numbers into strings. More...
 

Namespaces

 gul14
 Namespace gul14 contains all functions and classes of the General Utility Library.
 

Functions

std::string gul14::cat ()
 Efficiently concatenate an arbitrary number of strings and numbers. More...
 
std::string gul14::cat (const ConvertingStringView &s)
 
GUL_EXPORT std::string gul14::cat (const ConvertingStringView &s1, const ConvertingStringView &s2)
 
GUL_EXPORT std::string gul14::cat (const ConvertingStringView &s1, const ConvertingStringView &s2, const ConvertingStringView &s3)
 
GUL_EXPORT std::string gul14::cat (std::initializer_list< ConvertingStringView > pieces)
 
template<typename... Args, typename = std::enable_if_t<(sizeof...(Args) > 3)>>
std::string gul14::cat (const Args &... args)