---------------
Christof Meerwald@freec++.prog

home
> prog
>> freecpp
>>> member template class

translate to German (by SYSTRAN)

Member Template Class

> member_template_class.cpp:

template<class T>
struct A
{
 public:
  template<class U>
  struct B
  {
   public:
    void f()
    { }

    void g();
  };
};

template<class T>
template<class U>
void A<T>::B<U>::g()
{ }


int main(int argc, char *argv[])
{
  A<int>::B<char> a;

  a.f();
  a.g();


  return 0;
}
---------------

This Web page is licensed under the Creative Commons Attribution - NonCommercial - Share Alike License. Any use is subject to the Privacy Policy.

Revision: 1.2, cmeerw.org/prog/freecpp/member_template_class.html
Last modified: Mon Sep 03 18:20:50 2018
Christof Meerwald <cmeerw@cmeerw.org>
XMPP: cmeerw@cmeerw.org