D++ (DPP)  10.0.30
C++ Discord API Bot Library
test.cpp File Reference
#include "test.h"
#include <dpp/dpp.h>
#include <dpp/unicode_emoji.h>
#include <dpp/restrequest.h>
#include <dpp/json.h>
Include dependency graph for test.cpp:

Classes

struct  has_build_json< T, typename >
 Type trait to check if a certain type has a build_json method. More...
 
struct  has_build_json< T, std::void_t< decltype(std::declval< T & >().build_json())> >
 
struct  has_fill_from_json< T, typename >
 Type trait to check if a certain type has a fill_from_json method. More...
 
struct  has_fill_from_json< T, std::void_t< decltype(std::declval< T & >().fill_from_json(std::declval< dpp::json * >()))> >
 

Functions

int main (int argc, char *argv[])
 

Variables

template<typename T >
constexpr bool has_build_json_v = has_build_json<T>::value
 Type trait to check if a certain type has a build_json method. More...
 
template<typename T >
constexpr bool has_fill_from_json_v = has_fill_from_json<T>::value
 Type trait to check if a certain type has a fill_from_json method. More...
 

Function Documentation

◆ main()

Variable Documentation

◆ has_build_json_v

template<typename T >
constexpr bool has_build_json_v = has_build_json<T>::value
constexpr

Type trait to check if a certain type has a build_json method.

Template Parameters
Ttype to check for

◆ has_fill_from_json_v

template<typename T >
constexpr bool has_fill_from_json_v = has_fill_from_json<T>::value
constexpr

Type trait to check if a certain type has a fill_from_json method.

Template Parameters
Ttype to check for