正在加载图片...
Design a generic algorithm(cont.) Function objects Entity objects of certain classes which overloading the function call operator a Avoiding our own implementation, and more efficient (inline calling) Pre-defined function objects 6 arithmetic: plus<type>, minus<type>, negate<type> multiplies<type>, devides<type>, modules<type> 6 relational: less<type>, less_ equal<type>, greater <type>, greater_equal<type>, equal_to<type>, not_equal_to<type> 3 logical: logical_and<type>, logical_or<type> logical_not<type>Design a generic algorithm (cont.) ◼ Function Objects ◼ Entity objects of certain classes which overloading the function call operator ◼ Avoiding our own implementation, and more efficient (inline calling) ◼ Pre-defined function objects: ◼ 6 arithmetic: plus<type>, minus<type>, negate<type>, multiplies<type>, devides<type>, modules<type> ◼ 6 relational: less<type>, less_equal<type>, greater<type>, greater_equal<type>, equal_to<type>, not_equal_to<type> ◼ 3 logical: logical_and<type>, logical_or<type>, logical_not<type>
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有