bezel/scalar_construction_policy/purged.hbezel::scalar_construction_policy::purged
scalar_construction_policy::purgedは、オブジェクト破壊後に記憶領域のゼロクリアを行う、スカラー構築ポリシーのためのプロキシポリシーである。フロントエンドのテンプレートパラメータに下位の構築ポリシーを指定する。
constructは、下位の構築ポリシーのconstructをそのまま呼び出す。
destructは、使用者から返却されたオブジェクトを下位の構築ポリシーを用いて破壊し、破壊後に記憶領域全体をヌル文字('\0')で塗りつぶす。その際にscalar_construction_policy::purged自身が消費する計算量は領域サイズに対する線形時間である。