Skip to content

traysh/joiner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

joiner

Simple class to easily join types in a string in C++

usage example:

const auto cumprimento = "oi, ";
const auto nome = "Fulano";
const auto lembrete = "Você tem um compromisso às ";
const unsigned horario = 16;
const char exclamacao = '!';
const char fim_de_linha = '\n';

std::string joint = Luvitronics::joiner << cumprimento << nome << fim_de_linha << lembrete << horario << exclamacao << fim_de_linha;
std::cout << joint;

Output:

/home/danilo/devel/joiner> /home/danilo/devel/joiner/joiner
oi, Fulano
Você tem um compromisso às 16!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published