Constructors
#1 |
| |
#2 |
|
- Default constructor. Initializes the whole string with zeros.
- Constructs a
basic_fixed_string
from aconst char
array.
#
Parametersarray
- reference to an array of characters to use as source to initialize the fixed string with
#
Complexity1-2. Linear in N
#
Example#include <fixed_string.hpp>#include <iostream>
int main(){ fixstr::fixed_string str = "Hello, World!"; std::cout << str;}
Hello, World!