展开

开发者手册

C++字符串 | Stringsstd::basic_string_view::empty

性病:基本[医]弦[医]视图:空

constexpr bool empty() const;

(since C++17)

检查视图是否没有字符,即是否size() == 0...

参数

%280%29

返回值

true如果视图是空的,false否则。

例外

noexcept规格:

noexcept

复杂性

常量。

另见

sizelength

returns the number of characters (public member function)

max_size

returns the maximum number of characters (public member function)

代码语言:txt
复制
 © cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。