Posted By


tkf on 05/24/08

Tagged


Statistics


Viewed 213 times
Favorited by 0 user(s)

C++でFunctorによる処理の切り替え


/ Published in: C++
Save to your folder(s)

参考:
1. http://www.newty.de/fpt/functor.html
-- ほとんど、このコードにコメントを加えただけですw
2. http://d.hatena.ne.jp/nurs/20080125/1201278130
-- 最初このページを見つけたのですが、この方法だと実行時にファンクタ(関数オブジェクト)を作って、配列に入れて処理を切り替え、ってことが出来ないと思ったので、このコードを書きました。
3. http://www.mokehehe.com/assari/index.php?C%2B%2B%2F%A5%E1%A5%F3%A5%D0%B4%D8%BF%F4%A4%CE%A5%DD%A5%A4%A5%F3%A5%BF
-- 似てるかも

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.