aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-16 22:05:00 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-16 22:05:00 +0000
commitb336722fad709bb218c28f1d4550781c18cc1e58 (patch)
treed3e1095d96d045125c9f93f09afa2d3b5cefe782
parent71a8f0ad726a8775684dfdd47f59e12aa7d7b238 (diff)
downloadpaludis-b336722fad709bb218c28f1d4550781c18cc1e58.tar.gz
paludis-b336722fad709bb218c28f1d4550781c18cc1e58.tar.xz
Doxygenate
-rw-r--r--paludis/util/remove_shared_ptr.hh30
1 files changed, 30 insertions, 0 deletions
diff --git a/paludis/util/remove_shared_ptr.hh b/paludis/util/remove_shared_ptr.hh
index f6829a5..e557cf2 100644
--- a/paludis/util/remove_shared_ptr.hh
+++ b/paludis/util/remove_shared_ptr.hh
@@ -22,33 +22,63 @@
namespace paludis
{
+ /**
+ * Like tr1::remove_pointer for tr1::shared_ptr.
+ *
+ * \ingroup g_utils
+ */
template <typename T_>
struct RemoveSharedPtr
{
+ /// T_ with the tr1::shared_ptr removed.
typedef T_ Type;
};
+ /**
+ * Like tr1::remove_pointer for tr1::shared_ptr.
+ *
+ * \ingroup g_utils
+ */
template <typename T_>
struct RemoveSharedPtr<tr1::shared_ptr<T_> >
{
+ /// T_ with the tr1::shared_ptr removed.
typedef T_ Type;
};
+ /**
+ * Like tr1::remove_pointer for tr1::shared_ptr.
+ *
+ * \ingroup g_utils
+ */
template <typename T_>
struct RemoveSharedPtr<tr1::shared_ptr<const T_> >
{
+ /// T_ with the tr1::shared_ptr removed.
typedef const T_ Type;
};
+ /**
+ * Like tr1::remove_pointer for tr1::shared_ptr.
+ *
+ * \ingroup g_utils
+ */
template <typename T_>
struct RemoveSharedPtr<const T_>
{
+ /// T_ with the tr1::shared_ptr removed.
typedef const typename RemoveSharedPtr<T_>::Type Type;
};
+ /**
+ * Like tr1::remove_pointer for tr1::shared_ptr.
+ *
+ * \ingroup g_utils
+ */
template <typename T_>
struct RemoveSharedPtr<T_ &>
{
+ /// T_ with the tr1::shared_ptr removed.
typedef typename RemoveSharedPtr<T_>::Type Type;
};
}