boost::visitor_ptr — Returns a visitor object that adapts function pointers for use as a static visitor.
template<typename R, typename T> visitor_ptr_t<T,R> visitor_ptr(R (*)(T));
Constructs and returns a visitor_ptr_t adaptor over the given function.
Returns: |
Returns a visitor_ptr_t visitor object that, when applied, invokes the given function. |
Throws: |
Will not throw. (Note: however, that the returned visitor object may throw when applied.) |
Copyright © 2002, 2003 Eric Friedman, Itay Maman Permission to copy, use, sell and distribute this software is granted provided this copyright notice appears in all copies. Permission to modify the code and to distribute modified code is granted provided this copyright notice appears in all copies, and a notice that the code was modified is included with the copyright notice. This software is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose. |