- cpp17[meta cpp]
- node_handle[meta category]
- node_handle[meta class]
- function[meta id-type]
- [meta namespace]
bool empty() const noexcept;
[[nodiscard]] bool empty() const noexcept; // C++20ノードハンドルが空であれば true、そうでなければ false を返す。
#include <iostream>
#include <set>
int main()
{
std::set<int>::node_type nh;
std::cout << std::boolalpha << nh.empty();
}- empty[color ff0000]
true
- C++17
- Clang: 7.0.0
- GCC: 7.1.0
- ICC: ??
- Visual C++: 2017 Update 5