Policies Array Class-Design wrapper

Posted by PT on Stack Overflow See other posts from Stack Overflow or by PT
Published on 2009-11-11T10:00:14Z Indexed on 2010/05/31 21:03 UTC
Read the original article Hit count: 164

Filed under:
|
|
|

Hi,

i want to write an wrapper for different Array Classes with different Policies.

For example:

typedef ArrayType<useValArray,StdAllocator> Array; // one global assignment

I want to use the class like a blitz++ Array

for example:

Array<double,2> x(2,2); //maps the Array to an Valarray or to a Blitz++ Array
Array<double,2> x2(5,6);

is this Posible? Which technics i need to realise that?

© Stack Overflow or respective owner

Related posts about c++

Related posts about arrays