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 namespace daw::json::json_details {
11  template<typename T>
12  struct arrow_proxy {
13  T value;
14 
15  [[nodiscard]] constexpr T *operator->( ) && {
16  return &value;
17  }
18  };
19 } // namespace daw::json::json_details