export specifier

   
export specifier Exported template specifier

  template-decl  ::= [export] template <  template-parm-list  >  declaration  

The export specifier declares a template to be exported. An exported template lets you compile the definitions of a function template, or the member definitions of a class template, separately from the template's declaration.

figs/acorn.gif

Most compilers do not support export .

Example

  export  template<typename T> class point { public:   point(T x, T y); };  export  template<typename T> point::point(T x, T y) {   ... } 

See Also

template , Chapter 7

   


C++ in a Nutshell
C++ in a Nutshell
ISBN: 059600298X
EAN: 2147483647
Year: 2005
Pages: 270
Authors: Ray Lischner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net