This project is a part of Staticlibs.
This project contains a number of helper templates.
This library is header-only and depends on staticlib_config.
Link to the API documentation.
Library include:
#include "staticlib/support.hpp"
Implements to_string
template that calls std::to_string
on all supported platforms except Android,
where std::to_string
is missed for some versions of NDK. std::stringstream
implementation
is used for Android.
Implements a lambda function holder, that will execute specified lambda on destruction. It is similar in nature with defer in golang and with finally in GSL.util.
Exception class that extends std::exception
and implements constructor that takes std::string
and what
method that returns that string. All module-specific exception classed in Staticlibs
extends sl::support::exception
.
Basic implementation of optional
template from C++17.
Basic implementation of non-owning pointer template.
This project is released under the Apache License 2.0.
2019-04-04
- version 1.2.1
- windows header added
2018-06-12
- version 1.2.0
release_deleter
added
2017-12-23
- version 1.0.1
make_unique
andtribool
added- vs2017 support
2017-04-08
- version 1.0.0
- templates moved here from staticlib_config