panthema / 2012 / 1119-eSAIS-Inducing-Suffix-and-LCP-Arrays-in-External-Memory / eSAIS-DC3-LCP-0.5.2 / stxxl / include / stxxl / bits / noncopyable.h (Download File)
/***************************************************************************
 *  include/stxxl/bits/noncopyable.h
 *
 *  Inspired by boost::noncopyable.
 *
 *  Part of the STXXL. See http://stxxl.sourceforge.net
 *
 *  Copyright (C) 2007 Andreas Beckmann <beckmann@mpi-inf.mpg.de>
 *
 *  Distributed under the Boost Software License, Version 1.0.
 *  (See accompanying file LICENSE_1_0.txt or copy at
 *  http://www.boost.org/LICENSE_1_0.txt)
 **************************************************************************/

#ifndef STXXL_NONCOPYABLE_HEADER
#define STXXL_NONCOPYABLE_HEADER

#ifdef STXXL_BOOST_CONFIG
#include <boost/noncopyable.hpp>
#endif

#include <stxxl/bits/namespace.h>


__STXXL_BEGIN_NAMESPACE

#ifdef STXXL_BOOST_CONFIG

typedef boost::noncopyable noncopyable;

#else

class noncopyable {
protected:
    noncopyable() { }

private:
    // copying and assignment is not allowed
    noncopyable(const noncopyable &);
    const noncopyable & operator = (const noncopyable &);
};

#endif

__STXXL_END_NAMESPACE

#endif // !STXXL_NONCOPYABLE_HEADER