Adaptor function Tutorial

This is a discussion on Adaptor function Tutorial within the C++ Programming forums, part of the General Programming Boards category; Hello to all, does anyone have a good reference about adaptor function tutorial including example and explanation. Thanks....

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    10

    Thumbs up Adaptor function Tutorial

    Hello to all,

    does anyone have a good reference about adaptor function tutorial including example and explanation.

    Thanks.

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,600
    >> does anyone have a good reference about adaptor function tutorial including example and explanation.

    Well, an adaptor simply means an object that wraps another to match some sort of interface requirement. Pretty basic idea, really.
    Code:
    if( numeric_limits< byte >::digits != bits_per_byte )
        error( "program requires bits_per_byte-bit bytes" );
    24bbs.cpp

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    10
    Yes, i looking for example code/Usage in ptr_fun, mem_fun, mem_fun_ref.

    I hope you can teach me.

    Thanks.
    Last edited by Peter_APIIT; 07-22-2009 at 12:18 AM.

  4. #4
    Webhead Spidey's Avatar
    Join Date
    Jul 2009
    Posts
    285

  5. #5
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,600
    >> I hope you can teach me.

    If you have any specific questions I would be glad to answer them, but I'm not going to play "teach me" with you. If you want to learn more about this sort of thing I would recommend Google as a starting point.
    Code:
    if( numeric_limits< byte >::digits != bits_per_byte )
        error( "program requires bits_per_byte-bit bytes" );
    24bbs.cpp

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. My new website
    By joeprogrammer in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 03-17-2006, 06:38 PM
  2. Cprog tutorial: Design Patterns
    By maes in forum C++ Programming
    Replies: 7
    Last Post: 10-11-2004, 01:41 AM
  3. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 08:40 PM
  4. Problem with tutorial (Vector class)
    By OdyTHeBear in forum C++ Programming
    Replies: 4
    Last Post: 12-18-2002, 01:49 PM
  5. My DirectInput tutorial....
    By jdinger in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-18-2002, 11:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21