Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > how to understa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 43303 of 48020
Post > Topic >>

how to understand "u_long operator() (const KeyType kt) const"

by thomas <FreshThomas@[EMAIL PROTECTED] > Feb 13, 2008 at 09:42 PM

any ideas for this one?

--code--
template<>
class ACE_Hash<KeyType>
{
public:
  u_long operator() (const KeyType kt) const
  {
    int val = kt;
    return (u_long)val;
  }
};
--code--

while "operator u_long (void) const; " may be easily understood as a
conversion operator;
what does "u_long operator() (const KeyType kt) const;"  mean?
 




 2 Posts in Topic:
how to understand "u_long operator() (const KeyType kt) const"
thomas <FreshThomas@[E  2008-02-13 21:42:20 
Re: how to understand "u_long operator() (const KeyType kt) cons
"Alf P. Steinbach&qu  2008-02-14 06:51:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 9:02:06 CDT 2008.