Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::basic_string_view<CharT,Traits>::at

      From cppreference.com
      <cpp‎ |experimental‎ |basic string view
       
       
       
       
      std::experimental::basic_string_view
       
      constexpr const_reference at(size_type pos)const;
      (library fundamentals TS)

      Returns a reference to the character at specified locationpos. Bounds checking is performed, exception of typestd::out_of_range will be thrown on invalid access.

      Contents

      [edit]Parameters

      pos - position of the character to return

      [edit]Return value

      Reference to the requested character.

      [edit]Exceptions

      Throwsstd::out_of_range ifpos>= size().

      [edit]Complexity

      Constant.

      [edit]See also

      access specified character
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/basic_string_view/at&oldid=71247"

      [8]ページ先頭

      ©2009-2026 Movatter.jp