/src/boost/boost/json/impl/value.hpp
Line | Count | Source |
1 | | // |
2 | | // Copyright (c) 2022 Dmitry Arkhipov (grisumbras@yandex.ru) |
3 | | // |
4 | | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
5 | | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
6 | | // |
7 | | // Official repository: https://github.com/boostorg/json |
8 | | // |
9 | | |
10 | | #ifndef BOOST_JSON_IMPL_VALUE_HPP |
11 | | #define BOOST_JSON_IMPL_VALUE_HPP |
12 | | |
13 | | namespace boost { |
14 | | namespace json { |
15 | | |
16 | | value& |
17 | | value::at_pointer(string_view ptr, source_location const& loc) & |
18 | 0 | { |
19 | 0 | auto const& self = *this; |
20 | 0 | return const_cast<value&>( self.at_pointer(ptr, loc) ); |
21 | 0 | } |
22 | | |
23 | | value&& |
24 | | value::at_pointer(string_view ptr, source_location const& loc) && |
25 | 0 | { |
26 | 0 | return std::move( at_pointer(ptr, loc) ); |
27 | 0 | } |
28 | | |
29 | | } // namespace json |
30 | | } // namespace boost |
31 | | |
32 | | #endif // BOOST_JSON_IMPL_VALUE_HPP |