Changeset View
Changeset View
Standalone View
Standalone View
src/prevector.h
// Copyright (c) 2015-2016 The Bitcoin Core developers | // Copyright (c) 2015-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_PREVECTOR_H_ | #ifndef BITCOIN_PREVECTOR_H | ||||
#define _BITCOIN_PREVECTOR_H_ | #define BITCOIN_PREVECTOR_H | ||||
#include <cassert> | #include <cassert> | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <cstdlib> | #include <cstdlib> | ||||
#include <cstring> | #include <cstring> | ||||
#include <iterator> | #include <iterator> | ||||
#include <type_traits> | #include <type_traits> | ||||
▲ Show 20 Lines • Show All 562 Lines • ▼ Show 20 Lines | public: | ||||
} | } | ||||
value_type *data() { return item_ptr(0); } | value_type *data() { return item_ptr(0); } | ||||
const value_type *data() const { return item_ptr(0); } | const value_type *data() const { return item_ptr(0); } | ||||
}; | }; | ||||
#pragma pack(pop) | #pragma pack(pop) | ||||
#endif | #endif // BITCOIN_PREVECTOR_H |