GitHub - mmarkeloff/cpp-crtp-singleton: C++ header only library implements a thread-safe singleton class using CRTP · GitHub
Skip to content

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Build Status

cpp-crtp-singleton

C++ header only library implements a thread-safe singleton class using CRTP.

Usage

#include <crtp_st.hpp>

class Derived : public crtp_st::Base<Derived> {
public:
    void impl() { }
};

int main(int argc, char* argv[]) {
    Derived::instance().impl();

    return 0;
}

Examples

See sample project for more complete usage examples.

Documentation

See automatic generated docs for more information.

About

C++ header only library implements a thread-safe singleton class using CRTP

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages