Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
StringToStringComposerCommon.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <ostream>
9#include <alib/vector>
10
11#include <core/stringApi.hpp>
12
13namespace string {
14
16public:
17 template < class SymbolType >
18 static void composeContent ( ext::ostream & output, const std::vector < SymbolType > & content );
19};
20
21template < class SymbolType >
22void StringToStringComposerCommon::composeContent ( ext::ostream & output, const std::vector < SymbolType > & content ) {
23 bool first = true;
24 for ( const SymbolType & symbol : content ) {
25 if ( first )
26 first = false;
27 else
28 output << " ";
30
31 }
32}
33
34} /* namespace string */
35
Definition: ostream.h:14
Definition: StringToStringComposerCommon.h:15
static void composeContent(ext::ostream &output, const std::vector< SymbolType > &content)
Definition: StringToStringComposerCommon.h:22
typename T::SymbolType SymbolType
Definition: ReachableStates.h:176
Definition: RandomStringFactory.cpp:12
Definition: stringApi.hpp:26