Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

templates of templates c++

namespace std {
  template<typename t> struct hash<MyClass<t>>
  {
  	size_t operator() (const MyClass<t>& c) const;
  }
}

// You can also do things like

template<template<typename t> class type> func_name<type<t>>();
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #templates #templates
ADD COMMENT
Topic
Name
8+9 =