mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-01 11:11:22 +00:00
This avoids a static constructor of the global std::string, and rules out possibly expensive and implicit copies of the string completely.
15 lines
395 B
C++
15 lines
395 B
C++
// Copyright (c) 2023-present The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_TEST_UTIL_JSON_H
|
|
#define BITCOIN_TEST_UTIL_JSON_H
|
|
|
|
#include <univalue.h>
|
|
|
|
#include <string_view>
|
|
|
|
UniValue read_json(std::string_view jsondata);
|
|
|
|
#endif // BITCOIN_TEST_UTIL_JSON_H
|