swap and hash
This commit is contained in:
parent
63ae42c104
commit
a0274c8a15
4
paper.md
4
paper.md
@ -125,7 +125,7 @@ assert(id.variant() == uuid_variant::rfc);
|
|||||||
|
|
||||||
### Swapping
|
### Swapping
|
||||||
|
|
||||||
Both member and non-member swap functions including a `std::swap<>` specialization that enable the swapping of `uuid` values.
|
Both member and non-member `swap()` functions are available to perform the swapping of `uuid` values.
|
||||||
|
|
||||||
```
|
```
|
||||||
uuid empty;
|
uuid empty;
|
||||||
@ -418,7 +418,7 @@ public:
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Specialization
|
### Specialization
|
||||||
|
The template specializations of `std::hash` for the `uuid` class allow users to obtain hashes of UUIDs.
|
||||||
```
|
```
|
||||||
namespace std {
|
namespace std {
|
||||||
template <>
|
template <>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user