boostorg / boostorg/algorithm

fast variadic string-concat

Ouverte
#118 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C++
Étoiles
131
Forks
117
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Begin with the attached concat.hpp.txt implementation and compare its proposed API with the existing Boost.Algorithm structure. The issue names no repository file or test, so first locate the relevant algorithm entry points and test coverage. Done means an agreed variadic concat design with tests demonstrating the required behavior and memory-efficiency expectations.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
cpp
Domaine
devtools
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.