名前空間
変種
操作

実験的ライブラリヘッダ <experimental/any>

From cppreference.com
< cpp‎ | header‎ | experimental
 
 
標準ライブラリヘッダー
 
実験的なライブラリヘッダー
実行 P2300
<experimental/execution>
ファイルシステム TS
<experimental/filesystem>
並列処理 TS (v1, v2)
experimental/algorithm
experimental/execution_policy
experimental/exception_list
experimental/numeric
<experimental/simd>
experimental/task_block
ライブラリの基礎 TS (v1, v2, v3)
experimental/algorithm
<experimental/any>
experimental/array
experimental/chrono
experimental/deque
experimental/forward_list
<experimental/functional>
experimental/future
experimental/iterator
experimental/list
experimental/map
experimental/memory
<experimental/memory_resource>
experimental/numeric
<experimental/optional>
experimental/propagate_const
experimental/random
experimental/ratio
experimental/regex
experimental/scope
experimental/set
experimental/source_location
experimental/string
<experimental/string_view>
experimental/system_error
experimental/tuple
experimental/type_traits
experimental/unordered_map
experimental/unordered_set
experimental/utility
experimental/vector

並行処理 TS
experimental/atomic
experimental/barrier
experimental/future
experimental/latch
Ranges TS
コルーチンTS
experimental/coroutine
ネットワーキングTS
experimental/buffer
experimental/executor
experimental/internet
experimental/io_context
<experimental/net>
experimental/netfwd
experimental/socket
experimental/timer
リフレクションTS
<experimental/reflect>
 

このヘッダーは、Library Fundamentals TS (v1, v2) の一部です。

[編集] Classes

名前 説明
(Library Fundamentals TS)
any_cast の失敗によってスローされる例外。
(クラス)
(Library Fundamentals TS)
ValueType 要件を満たす任意の型のインスタンスを保持するオブジェクト。
(クラス)

[編集] Functions

2つの any インスタンスをスワップします。
(function) [編集]
内包オブジェクトへの型安全なアクセス
(function template) [編集]

[編集] Synopsis

namespace std {
namespace experimental {
inline namespace fundamentals_v1 {
 
  class bad_any_cast : public bad_cast
  {
  public:
    virtual const char* what() const noexcept;
  };
 
  class any
  {
  public:
    // 6.3.1, any construct/destruct
    any() noexcept;
 
    any(const any& other);
    any(any&& x) noexcept;
 
    template <class ValueType>
        any(ValueType&& value);
 
    ~any();
 
    // 6.3.2, any assignments
    any& operator=(const any& rhs);
    any& operator=(any&& rhs) noexcept;
 
    template <class ValueType>
      any& operator=(ValueType&& rhs);
 
    // 6.3.3, any modifiers
    void clear() noexcept;
    void swap(any& rhs) noexcept;
 
    // 6.3.4, any observers
    bool empty() const noexcept;
    const type_info& type() const noexcept;
  };
 
  // 6.4, Non-member functions
  void swap(any& x, any& y) noexcept;
 
  template<class ValueType>
    ValueType any_cast(const any& operand);
  template<class ValueType>
    ValueType any_cast(any& operand);
  template<class ValueType>
    ValueType any_cast(any&& operand);
 
  template<class ValueType>
    const ValueType* any_cast(const any* operand) noexcept;
  template<class ValueType>
    ValueType* any_cast(any* operand) noexcept;
 
} // namespace fundamentals_v1
} // namespace experimental
} // namespace std
English 日本語 中文(简体) 中文(繁體)