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

home
> prog
>> freecpp
>>> right angle brackets

translate to German (by SYSTRAN)

Right Angle Brackets

See Right Angle Brackets (Revision 2)

> right_angle_brackets.cpp:

template<int I> struct X {
  static int const c = 2;
};

template<> struct X<0> {
  typedef int c;
};

template<typename T> struct Y {
  static int const c = 3;
};

static int const c = 4;

int main() {
  return
    ((Y<X<1> >::c >::c>::c) != 0) ||
    ((Y<X< 1>>::c >::c>::c) != 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/right_angle_brackets.html
Last modified: Mon Sep 03 18:20:50 2018
Christof Meerwald <cmeerw@cmeerw.org>
XMPP: cmeerw@cmeerw.org