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 
12 namespace daw::json {
13  inline namespace DAW_JSON_VER {
14  namespace json_details {
15  template<typename T>
16  struct arrow_proxy {
17  T value;
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
constexpr T * operator->() &&
Definition: daw_json_arrow_proxy.h:19
T value
Definition: daw_json_arrow_proxy.h:17
#define DAW_JSON_VER
Definition: version.h:11