blob: 159b9fa09efc8ad1d358bd836ab4edcd3bdfad35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/**
** \file misc/deref.hxx
** \brief Inline methods for misc/deref.hh.
**/
#pragma once
#include <misc/contract.hh>
#include <misc/deref.hh>
namespace misc
{
template <typename T> std::ostream& Deref::operator<<(const T* t) const
{
return this->ostr_ << *t;
}
template <typename T> std::ostream& Deref::operator<<(T* t) const
{
return this->ostr_ << *t;
}
template <typename T> std::ostream& Deref::operator<<(const ref<T>& t) const
{
return this->ostr_ << *t;
}
template <typename T> std::ostream& Deref::operator<<(const T& t) const
{
return this->ostr_ << t;
}
template <typename T> std::ostream& Deref::operator<<(T& t) const
{
return this->ostr_ << t;
}
inline Deref operator<<(std::ostream& ostr, deref_e) { return Deref(ostr); }
} // namespace misc
|