|
template<std::size_t _Size1, std::size_t _Size2> |
string< std::max(_Size1, _Size2)> | qb::operator+ (const string< _Size1 > &lhs, const string< _Size2 > &rhs) noexcept |
| Concatenation operator.
|
template<std::size_t _Size> |
string< _Size > | qb::operator+ (const string< _Size > &lhs, const char *rhs) noexcept |
| Concatenation operator with C-style string.
|
template<std::size_t _Size> |
string< _Size > | qb::operator+ (const char *lhs, const string< _Size > &rhs) noexcept |
| Concatenation operator with C-style string on left.
|
template<std::size_t _Size> |
string< _Size > | qb::operator+ (const string< _Size > &lhs, char rhs) noexcept |
| Concatenation operator with character.
|
template<std::size_t _Size> |
string< _Size > | qb::operator+ (char lhs, const string< _Size > &rhs) noexcept |
| Concatenation operator with character on left.
|
template<std::size_t _Size> |
void | qb::swap (string< _Size > &lhs, string< _Size > &rhs) noexcept |
| Swap function for strings.
|
template<std::size_t _Size> |
std::ostream & | qb::operator<< (std::ostream &os, qb::string< _Size > const &str) noexcept |
| Output stream operator for qb::string.
|
template<std::size_t _Size> |
std::istream & | qb::operator>> (std::istream &is, qb::string< _Size > &str) noexcept |
| Input stream operator for qb::string.
|
template<std::size_t _Size> |
bool | qb::operator== (const char *lhs, const string< _Size > &rhs) noexcept |
template<std::size_t _Size> |
bool | qb::operator!= (const char *lhs, const string< _Size > &rhs) noexcept |
Fixed-size string implementation optimized for performance.
This file defines a string class with a fixed maximum size that provides better performance than std::string for small strings that don't exceed the size limit. It uses a template parameter to specify the maximum string size and chooses the optimal size type for storage.
- Author
- qb - C++ Actor Framework
- Copyright
- Copyright (c) 2011-2025 qb - isndev (cpp.actor) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.