Changeset View
Changeset View
Standalone View
Standalone View
src/amount.h
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_AMOUNT_H | #ifndef BITCOIN_AMOUNT_H | ||||
#define BITCOIN_AMOUNT_H | #define BITCOIN_AMOUNT_H | ||||
#include "serialize.h" | #include "serialize.h" | ||||
#include <cstdlib> | #include <cstdlib> | ||||
#include <string> | #include <string> | ||||
#include <type_traits> | #include <type_traits> | ||||
#ifdef __APPLE__ | |||||
#include <iostream> | |||||
#endif | |||||
struct Amount { | struct Amount { | ||||
private: | private: | ||||
int64_t amount; | int64_t amount; | ||||
public: | public: | ||||
constexpr Amount() : amount(0) {} | constexpr Amount() : amount(0) {} | ||||
template <typename T> | template <typename T> | ||||
▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines |