DAW JSON Link
daw_json_arrow_proxy.h
Go to the documentation of this file.
1// Copyright (c) Darrell Wright
2//
3// Distributed under the Boost Software License, Version 1.0. (See accompanying
4// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
5//
6// Official repository: https://github.com/beached/daw_json_link
7//
8#pragma once
9
10#include "version.h"
11
12namespace daw::json {
13 inline namespace DAW_JSON_VER {
14 namespace json_details {
15 template<typename T>
16 struct arrow_proxy {
18
19 [[nodiscard]] constexpr T *operator->( ) && {
20 return &value;
21 }
22 };
23 } // namespace json_details
24 } // namespace DAW_JSON_VER
25} // namespace daw::json
Definition: daw_from_json.h:22
Definition: daw_json_arrow_proxy.h:16
T value
Definition: daw_json_arrow_proxy.h:17
constexpr T * operator->() &&
Definition: daw_json_arrow_proxy.h:19
#define DAW_JSON_VER
The version string used in namespace definitions. Must be a valid namespace name.
Definition: version.h:16