Molybden API
Loading...
Searching...
No Matches
js_convertible_types.hpp
1// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_JS_CONVERTIBLE_TYPES_HPP
6#define MOLYBDEN_JS_CONVERTIBLE_TYPES_HPP
7
8#include <memory>
9#include <string>
10
11#include "molybden/js/js_object.hpp"
12#include "molybden/js/js_proxy_object.hpp"
13
14namespace molybden {
15namespace internal {
16
21template <class T>
22struct IsConvertibleFromJsDirectly {
23 static constexpr bool value();
24};
25
30template <class... T>
31struct AreAllConvertibleFromJsDirectly;
32
33template <class T0, class... T>
34struct AreAllConvertibleFromJsDirectly<T0, T...> {
35 static void check();
36};
37
38template <>
39struct AreAllConvertibleFromJsDirectly<> {
40 static void check() {}
41};
42
43} // namespace internal
44} // namespace molybden
45
46#endif // MOLYBDEN_JS_CONVERTIBLE_TYPES_HPP