CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: function usage

  1. #1
    Join Date
    Jan 2002
    Posts
    10

    function usage

    Hi,

    Am using some third party libraries. But the following has me confused. The following operator (???) exists in a template class .How would I use it.

    // Cast the Array to it's elemental type.

    operator T *()
    {
    copyOnWrite();
    return (T *)data;
    }


  2. #2
    Join Date
    Oct 2000
    Location
    London, England
    Posts
    4,773

    Re: function usage

    That operator allows you to pass a the class to a function that requires a T* (or assign it etc)



    The best things come to those who rate

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured