Skip to content

staticlibs/staticlib_support

Repository files navigation

Staticlibs Support headers library

travis appveyor

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.

Features

Library include:

#include "staticlib/support.hpp"

to_string template

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.

defer template

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.

basic exception

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.

optional template

Basic implementation of optional template from C++17.

observer_ptr template

Basic implementation of non-owning pointer template.

License information

This project is released under the Apache License 2.0.

Changelog

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 and tribool added
  • vs2017 support

2017-04-08

About

Staticlib Support headers library

Resources

License

Stars

Watchers

Forks

Packages

No packages published