Doxygen Samurai Engine 0.0.1
Doxygen Samurai Engine Documentation
Loading...
Searching...
No Matches
staticString.h
Go to the documentation of this file.
1#pragma once
2
3
4#include <staticVector.h>
5#include <string>
6
7namespace samurai
8{
9
10 template<size_t N>
11 struct StaticString: public StaticVector<char, N>
12 {
14
15 StaticString(const char *c)
16 {
17 for (; *c != 0; c++)
18 {
19 push_back(*c);
20 }
21 }
22
23 std::string to_string()
24 {
25 return std::string(beg_, beg_ + size_);
26 }
27 };
28
29
30}
std::string to_string()
StaticString(const char *c)
void push_back(const char &el)