boostorg / boostorg/algorithm

fast variadic string-concat

Aperta
#118 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C++
Stelle
131
Fork
117
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello,
often string functions of the form
str = str + concat(strings...)
or
str = concat(strings...)
are needed. But so far there is no variadic std::concat or boost::algorithm::concat. I would like to make up for that here.
The goal of course must be to limit memory operations to the most necessary, i.e. to avoid temporary strings and thus (superfluous) new/delete etc.
My current implementations [concat.hpp.txt](https://github.com/boostorg/algorithm/files/11763557/concat.hpp.txt)
This also works with very old compilers - of course C++11 is generally required https://godbolt.org/z/cvWrzxr1e

thx
Gero

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.