template <typename T> void foo();
template <typename T> void bar();
template <typename T> {
void foo();
void bar();
}
Respectfully,
Eyal Rozenberg
template<class T>
template<class U> {
void f();
}
template<class T> template<class U> void f();
template<class T> {
template<class U> {
void f();
}
void g();
}
template<class T> template<class U> void f();
template<class T>
void g();
>
> On 24 Apr 2017, at 03:54, eya...@technion.ac.il wrote:
>
> Hello,
>
> This is my first post to this, um, list/group, so please indulge any flagrant ignorance.
>
> When writing templated code, we often find ourselves writing multiple consecutive functions with identical template parameters. (As an example, we can have a look at, say, libstdc++'s bits/stl_algo.h ; or just any templated class with multiple methods implemented outside of the class definition).
Defining members of a template class outside the class is a pain..