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 | #include "IsSame.hpp"
|
---|
| 11 |
|
---|
| 12 | namespace ArduinoJson {
|
---|
| 13 | namespace TypeTraits {
|
---|
| 14 |
|
---|
| 15 | // A meta-function that returns true if T is a floating point type
|
---|
| 16 | template <typename T>
|
---|
| 17 | struct IsFloatingPoint {
|
---|
| 18 | static const bool value = IsSame<T, float>::value || IsSame<T, double>::value;
|
---|
| 19 | };
|
---|
| 20 | }
|
---|
| 21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.