次の方法で共有


scoped_allocator_adaptor::scoped_allocator_adaptor コンストラクター

scoped_allocator_adaptor オブジェクトを構築します。

scoped_allocator_adaptor();
scoped_allocator_adaptor(const scoped_allocator_adaptor& right) noexcept;
template<class Outer2>
    scoped_allocator_adaptor(
        const scoped_allocator_adaptor<Outer2, Inner...>& right) noexcept;
template<class Outer2>
    scoped_allocator_adaptor(
        scoped_allocator_adaptor<Outer2, Inner...>&& right) noexcept;
template<class Outer2>
    scoped_allocator_adaptor(Outer2&& al,
        const Inner&... rest) noexcept;

パラメーター

  • right
    既存の scoped_allocator_adaptor

  • al
    外側のアロケーターとして使用する既存のアロケーター。

  • rest
    内部のアロケーターとして使用されるアロケーターのリスト。

解説

最初の既定のコンストラクターは、格納されているアロケーター オブジェクトを構築します。格納されているアロケーターが rightの対応するオブジェクトから取得する次の 3 種類のコンストラクターの構成要素の各。最後のコンストラクターは、引数リスト内の対応する格納されているアロケーター オブジェクトを構築します。

必要条件

ヘッダー: <scoped_allocator>

名前空間: std

参照

関連項目

scoped_allocator_adaptor クラス