|
y3c-stl 0.4.0
Friendly C++ STL wrapper with automatic stacktrace
|
オブジェクトのライフタイムを管理するクラス More...
#include <y3c/life.h>
Public Member Functions | |
| life (const void *begin, const void *end) | |
| template<typename T > | |
| life (T *begin) | |
| life (const life &)=delete | |
| life & | operator= (const life &)=delete |
| life (life &&)=delete | |
| life & | operator= (life &&)=delete |
| ~life () | |
| life_observer | observer () const |
| void | update (const void *begin, const void *end, const void *invalidate_from=nullptr) |
| bool | operator== (const life_observer &obs) const |
| bool | operator!= (const life_observer &obs) const |
オブジェクトのライフタイムを管理するクラス
オブジェクトの所有者はlifeまたはshared_ptr<life>を持つ。
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
新しい範囲が以前の範囲と被っていれば範囲を更新し(observerは有効のまま)、 まったく異なる範囲であればリセットする(以前のobserverは無効になる)
| invalidate_from | 更新された範囲の先頭 (nullptrでない場合、これより後の範囲を追加で無効化する) |