summaryrefslogtreecommitdiff
path: root/include/lib/ArduinoJson/Misc/Visitable.hpp
blob: f25d12f2becd2d89874b101649ac4c3c8034dbed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// ArduinoJson - https://arduinojson.org
// Copyright Benoit Blanchon 2014-2021
// MIT License

#pragma once

#include <ArduinoJson/Polyfills/type_traits.hpp>

namespace ARDUINOJSON_NAMESPACE {

struct Visitable {
  // template<Visitor>
  // void accept(Visitor&) const;
};

template <typename T>
struct IsVisitable : is_base_of<Visitable, T> {};

template <typename T>
struct IsVisitable<T &> : IsVisitable<T> {};
}  // namespace ARDUINOJSON_NAMESPACE