テンプレート関数が1行の変更で消える — C++ラムダ肥大化を解消するRaymond Chenの処方箋
DRANK

8月21日、Raymond Chenが「Reducing C++ template bloat by factoring out the type-dependent portions of the function, practical exam」と題した記事を公開した。C++のテンプレート関数からラムダ依存部分を切り離すことでテンプレート肥大化を解消する実践的手法が、段階的なリファクタリングの形で解説されている。

by @tf_official
Related Topics: C++ Software Design