콘텐츠로 이동
Search

Std::call once

Example

#include <mutex>
// ...
static std::once_flag register_flag;
std::call_once(register_flag, [this](){
        this->init();
    });

Favorite site

lastmod 2015-09-11created 2015-09-11 sitemap