Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::unexpect_t,std::unexpect

      From cppreference.com
      <cpp‎ |utility‎ |expected
       
       
      Utilities library
       
       
      Defined in header<expected>
      struct unexpect_t{explicit unexpect_t()=default;};
      (1)(since C++23)
      inlineconstexpr std::unexpect_t unexpect{};
      (2)(since C++23)
      1) A tag type for in-place construction of an unexpected value in anstd::expected object.
      2) A constant of typeconst std::unexpect_t which is usually directly passed to a constructor ofstd::expected to construct an unexpected value.

      [edit]Notes

      Like other construction tag types,unexpect_t is a trivial, empty class with an explicit default constructor.

      [edit]See also

      constructs theexpected object
      (public member function)[edit]
      in-place construction tag
      (tag)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/utility/expected/unexpect_t&oldid=177510"

      [8]ページ先頭

      ©2009-2025 Movatter.jp