10 virtual int value() = 0;
14struct TMorph :
Morph< TMorph< W >, W, TInterface >
17 TMorph(
const W &
w ) :
Morph< TMorph,
W, TInterface >(
w ) {}
19 virtual int value() {
return this->
wrapped().value(); }
22struct T :
Amorph< T, TInterface >
25 :
Amorph< T, TInterface >( i ) {}
34 virtual int value()
const {
return 1; }
36 return value() <=
o.value();
42 virtual int value()
const {
return 3; }
46 int value()
const {
return 2; }
48 return value() <=
o.value();
52struct ExtractT1Value {
53 typedef int result_type;
54 typedef T1 argument_type;
55 int operator()(
const T1 &
t ) {
const Interface * implementation() const
Definition amorph.h:361
const Wrapped & wrapped() const
Definition amorph.h:181
#define assert_eq(x, y)
Definition test.h:33