all_elements_same_cpp_wrap function

Tests if a vector has all elements the same