Cpp aproach for tabsearc