Changeset View
Changeset View
Standalone View
Standalone View
src/support/allocators/zeroafterfree.h
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2015 The Bitcoin Core developers | // Copyright (c) 2009-2015 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_SUPPORT_ALLOCATORS_ZEROAFTERFREE_H | #ifndef BITCOIN_SUPPORT_ALLOCATORS_ZEROAFTERFREE_H | ||||
#define BITCOIN_SUPPORT_ALLOCATORS_ZEROAFTERFREE_H | #define BITCOIN_SUPPORT_ALLOCATORS_ZEROAFTERFREE_H | ||||
#include "support/cleanse.h" | #include <support/cleanse.h> | ||||
#include <memory> | #include <memory> | ||||
#include <vector> | #include <vector> | ||||
template <typename T> | template <typename T> | ||||
struct zero_after_free_allocator : public std::allocator<T> { | struct zero_after_free_allocator : public std::allocator<T> { | ||||
// MSVC8 default copy constructor is broken | // MSVC8 default copy constructor is broken | ||||
typedef std::allocator<T> base; | typedef std::allocator<T> base; | ||||
Show All 28 Lines |