Rev | Line | |
---|
[209] | 1 | // Copyright Benoit Blanchon 2014-2016
|
---|
| 2 | // MIT License
|
---|
| 3 | //
|
---|
| 4 | // Arduino JSON library
|
---|
| 5 | // https://github.com/bblanchon/ArduinoJson
|
---|
| 6 | // If you like this project, please add a star!
|
---|
| 7 |
|
---|
| 8 | #pragma once
|
---|
| 9 |
|
---|
| 10 | namespace ArduinoJson {
|
---|
| 11 | namespace TypeTraits {
|
---|
| 12 |
|
---|
| 13 | // A meta-function that return the type T without the const modifier
|
---|
| 14 | template <typename T>
|
---|
| 15 | struct RemoveConst {
|
---|
| 16 | typedef T type;
|
---|
| 17 | };
|
---|
| 18 | template <typename T>
|
---|
| 19 | struct RemoveConst<const T> {
|
---|
| 20 | typedef T type;
|
---|
| 21 | };
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.