Namespaces
Variants

std::experimental::basic_string_view<CharT,Traits>:: size, std::experimental::basic_string_view<CharT,Traits>:: length

From cppreference.net
constexpr size_type size ( ) const noexcept ;
(라이브러리 fundamentals TS)
constexpr size_type length ( ) const noexcept ;
(라이브러리 fundamentals TS)

뷰에 있는 CharT 요소의 개수를 반환합니다. 즉, std:: distance ( begin ( ) , end ( ) ) 입니다.

목차

매개변수

(없음)

반환값

뷰에 있는 CharT 요소의 개수입니다.

복잡도

상수.

참고 항목

뷰가 비어 있는지 확인합니다
(public member function)
최대 문자 수를 반환합니다
(public member function)