Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 673 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 673 Bytes

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.