C++

From LPTMS Wiki
Revision as of 22:49, 3 February 2011 by Roux (talk | contribs) (Created page with "testing c++ source display: <source lang="cpp"> template<typename T> class B { private: T t; public: B(T const& _t) : t(_t) {}; T value() const {return t;}; }; int main()...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

testing c++ source display:

template<typename T> class B
{
private:
  T t;
public:
  B(T const& _t) : t(_t) {};
  T value() const {return t;};
};

int main()
{
   B<int> b(2);
}