title: Function template in non-template class
body: <p>I'm sure that it is possible but I just can't do it, which is: How can I define function template inside non-template class? I tryied something like this:</p>
  
  <pre><code>class Stack_T
  {
      private:
          void* _my_area;
          static const int _num_of_objects = 10;
  
      public:
          // Allocates space for objects added to stack
          explicit Stack_T(size_t);
          virtual ~Stack_T(void);
  
          // Puts object onto stack
          template&lt;class T&gt;
          void put(const T&amp;);
  
          // Gets last added object to the stack
          template&lt;class T&gt;
          T&amp; get()const;
  
          // Removes last added object from the stack
          template&lt;class T&gt;
          void remove(const T&amp;);
  };
  
  template&lt;class T&gt; //SOMETHING WRONG WITH THIS DEFINITION
  void Stack_T::put&lt;T&gt;(const T&amp; obj)
  {
  }
  </code></pre>
  
  <p>but it doesn't work. I'm getting this err msg:</p>
  
  <p>'Error  1   error C2768: 'Stack_T::put' : illegal use of explicit template arguments'<br>
  Thank you</p>