fixstr::basic_fixed_string::operator=
#1 |
|
Replaces the contents with a copy of array
.
#
Parametersarray
- reference to an array of characters to use as source to initialize the fixed string with
#
ComplexityLinear in N
#
Example#include <fixed_string.hpp>#include <iostream>
int main(){ fixstr::fixed_string<5> hello, world; hello = "Hello"; world = "World"; std::cout << hello << ", " << world;}
Hello, World!