| 387 | */ |
| 388 | template< typename Function > |
| 389 | void ForEach( const Function &function ) |
| 390 | { |
| 391 | auto data = GetData(); |
| 392 | for( auto &pObject : data.mObject ) { |
| 393 | const auto &ptr = Dereferenceable(pObject); |
| 394 | if ( ptr ) |
| 395 | function( *ptr ); |
| 396 | } |
| 397 | } |
| 398 | |
| 399 | //! @copydoc ForEach |
| 400 | /*! const overload only compiles with a function that takes reference to const ClientData. */ |
no test coverage detected