mirror of
https://github.com/AnthonyCalandra/modern-cpp-features.git
synced 2025-12-17 18:14:36 +03:00
Merge pull request #2 from thukydides/digit-separator
Briefly mention digit separators
This commit is contained in:
@@ -370,9 +370,10 @@ m.insert(std::move(e));
|
|||||||
|
|
||||||
### Binary literals
|
### Binary literals
|
||||||
Binary literals provide a convenient way to represent a base-2 number.
|
Binary literals provide a convenient way to represent a base-2 number.
|
||||||
|
It is possible to separate digits with `'`.
|
||||||
```c++
|
```c++
|
||||||
0b110 // == 6
|
0b110 // == 6
|
||||||
0b11111111 // == 255
|
0b1111'1111 // == 255
|
||||||
```
|
```
|
||||||
|
|
||||||
### Generic lambda expressions
|
### Generic lambda expressions
|
||||||
|
|||||||
Reference in New Issue
Block a user