std wrapper anonymous function