|
| | set () |
| | Construct a new set object.
|
| |
| template<typename FwdIter > |
| | set (const FwdIter &start, const FwdIter &stop) |
| | Construct a new set object.
|
| |
| | set (std::initializer_list< Key > init) |
| | Construct a new set object from an initializer list.
|
| |
| auto | contains (const Key &key) const -> bool |
| | Check if the set contains a specific element.
|
| |
| auto | copy () const -> set |
| | Create a copy of the set.
|
| |
| auto | operator= (const set &) -> set &=delete |
| | Copy assignment operator (deleted)
|
| |
| auto | operator= (set &&) noexcept -> set &=default |
| | Move assignment operator.
|
| |
| | set (set< Key > &&) noexcept=default |
| | Move Constructor (default)
|
| |
| | ~set () noexcept=default |
| | Destructor (default)
|
| |
| | set (const set< Key > &)=default |
| | Copy Constructor (default)
|
| |
template<typename Key>
class py::set< Key >
Python-like set implementation.
A set class that extends std::unordered_set with Python-like convenience methods and functionality.
- Template Parameters
-
| Key | The element type stored in the set |