#include "include/unordered_map.h"
#include "include/unordered_set.h"
-#include "triple.h"
// boost optional
template<typename T>
decode(pa.second, p);
}
-// triple
-template<class A, class B, class C>
-inline void encode(const triple<A,B,C> &t, bufferlist &bl)
-{
- encode(t.first, bl);
- encode(t.second, bl);
- encode(t.third, bl);
-}
-template<class A, class B, class C>
-inline void decode(triple<A,B,C> &t, bufferlist::iterator &p)
-{
- decode(t.first, p);
- decode(t.second, p);
- decode(t.third, p);
-}
-
-
// list
template<class T>
inline void encode(const std::list<T>& ls, bufferlist& bl)
+++ /dev/null
-// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
-// vim: ts=8 sw=2 smarttab
-/*
- * Ceph - scalable distributed file system
- *
- * Copyright (C) 2004-2006 Sage Weil <sage@newdream.net>
- *
- * This is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1, as published by the Free Software
- * Foundation. See file COPYING.
- *
- */
-
-#ifndef CEPH_TRIPLE_H
-#define CEPH_TRIPLE_H
-
-template<class A, class B, class C>
-class triple {
- public:
- A first;
- B second;
- C third;
-
- triple() {}
- triple(A f, B s, C t) : first(f), second(s), third(t) {}
-};
-
-#endif