#include <ciso646>
-#ifdef _LIBCPP_VERSION
-
#include <functional>
#define CEPH_HASH_NAMESPACE_START namespace std {
#define CEPH_HASH_NAMESPACE_END }
#define CEPH_HASH_NAMESPACE std
-#else
-
-#include <tr1/functional>
-
-#define CEPH_HASH_NAMESPACE_START namespace std { namespace tr1 {
-#define CEPH_HASH_NAMESPACE_END }}
-#define CEPH_HASH_NAMESPACE std::tr1
-
-#endif
-
#endif
#ifndef CEPH_MEMORY_H
#define CEPH_MEMORY_H
-#include <ciso646>
-
-#ifdef _LIBCPP_VERSION
-
#include <memory>
namespace ceph {
using std::static_pointer_cast;
}
-#else
-
-#include <tr1/memory>
-
-namespace ceph {
- using std::tr1::shared_ptr;
- using std::tr1::weak_ptr;
- using std::tr1::static_pointer_cast;
-}
-
-#endif
-
#endif
#include <ciso646>
-#ifdef _LIBCPP_VERSION
-
#include <unordered_map>
namespace ceph {
using std::unordered_multimap;
}
-#else
-
-#include <tr1/unordered_map>
-
-namespace ceph {
- using std::tr1::unordered_map;
- using std::tr1::unordered_multimap;
-}
-
-#endif
-
#endif
#include <ciso646>
-#ifdef _LIBCPP_VERSION
-
#include <unordered_set>
namespace ceph {
using std::unordered_set;
}
-#else
-
-#include <tr1/unordered_set>
-
-namespace ceph {
- using std::tr1::unordered_set;
-}
-
-#endif
-
#endif
#include <set>
#include <map>
#include <string>
-#include <tr1/memory>
+#include <memory>
#include <errno.h>
#include "rocksdb/db.h"
RocksDBStore::WholeSpaceIterator RocksDBStore::_get_iterator()
{
- return std::tr1::shared_ptr<KeyValueDB::WholeSpaceIteratorImpl>(
+ return std::shared_ptr<KeyValueDB::WholeSpaceIteratorImpl>(
new RocksDBWholeSpaceIteratorImpl(
db->NewIterator(rocksdb::ReadOptions())
)
snapshot = db->GetSnapshot();
options.snapshot = snapshot;
- return std::tr1::shared_ptr<KeyValueDB::WholeSpaceIteratorImpl>(
+ return std::shared_ptr<KeyValueDB::WholeSpaceIteratorImpl>(
new RocksDBSnapshotIteratorImpl(db, snapshot,
db->NewIterator(options))
);
#include <set>
#include <map>
#include <string>
-#include <tr1/memory>
+#include <memory>
#include <boost/scoped_ptr.hpp>
#include <errno.h>
};
KeyValueDB::Transaction get_transaction() {
- return std::tr1::shared_ptr< RocksDBTransactionImpl >(
+ return std::shared_ptr< RocksDBTransactionImpl >(
new RocksDBTransactionImpl(this));
}