Home
last modified time | relevance | path

Searched refs:is_palindrome (Results 1 – 5 of 5) sorted by relevance

/third_party/boost/libs/algorithm/test/
Dis_palindrome_test.cpp52 BOOST_CHECK ( ba::is_palindrome(empty)); in test_is_palindrome()
53 BOOST_CHECK ( ba::is_palindrome(singleElement)); in test_is_palindrome()
54 BOOST_CHECK (!ba::is_palindrome(boost::begin(oddNonPalindrome), boost::end(oddNonPalindrome))); in test_is_palindrome()
55 BOOST_CHECK ( ba::is_palindrome(boost::begin(oddPalindrome), boost::end(oddPalindrome))); in test_is_palindrome()
56 BOOST_CHECK ( ba::is_palindrome(boost::begin(evenPalindrome), boost::end(evenPalindrome))); in test_is_palindrome()
57 … BOOST_CHECK (!ba::is_palindrome(boost::begin(evenNonPalindrome), boost::end(evenNonPalindrome))); in test_is_palindrome()
60 BOOST_CHECK ( ba::is_palindrome(empty.begin(), empty.end(), functorComparator())); in test_is_palindrome()
61 …BOOST_CHECK (!ba::is_palindrome(boost::begin(oddNonPalindrome), boost::end(oddNonPalindrome), func… in test_is_palindrome()
62 BOOST_CHECK ( ba::is_palindrome(evenPalindrome, std::equal_to<int>())); in test_is_palindrome()
65 BOOST_CHECK ( ba::is_palindrome(stringNullPtr)); in test_is_palindrome()
[all …]
/third_party/boost/libs/algorithm/doc/
Dis_palindrome.qbk1 [/ File is_palindrome.qbk]
3 [section:is_palindrome is_palindrome]
12 The header file 'is_palindrome.hpp' contains six variants of a single algorithm, is_palindrome.
15 The routine `is_palindrome` takes a sequence and, optionally, a predicate. It will return true if t…
24 The function `is_palindrome` returns true if the predicate returns true any tested by algorithm ite…
35 bool is_palindrome ( BidirectionalIterator begin, BidirectionalIterator end );
37 bool is_palindrome ( BidirectionalIterator begin, BidirectionalIterator end, Predicate p );
39 bool is_palindrome ( const Range &r );
41 bool is_palindrome ( const Range &r, Predicate p );
43 bool is_palindrome ( const char* str, Predicate p );
[all …]
Dalgorithm.qbk197 [include is_palindrome.qbk]
/third_party/boost/boost/algorithm/
Dis_palindrome.hpp39 bool is_palindrome(BidirectionalIterator begin, BidirectionalIterator end, Predicate p) in is_palindrome() function
73 bool is_palindrome(BidirectionalIterator begin, BidirectionalIterator end) in is_palindrome() function
75 return is_palindrome(begin, end, in is_palindrome()
88 bool is_palindrome(const R& range) in is_palindrome() function
90 return is_palindrome(boost::begin(range), boost::end(range)); in is_palindrome()
103 bool is_palindrome(const R& range, Predicate p) in is_palindrome() function
105 return is_palindrome(boost::begin(range), boost::end(range), p); in is_palindrome()
116 bool is_palindrome(const char* str) in is_palindrome() function
120 return is_palindrome(str, str + strlen(str)); in is_palindrome()
133 bool is_palindrome(const char* str, Predicate p) in is_palindrome() function
[all …]
/third_party/boost/libs/algorithm/example/
Dis_palindrome_example.cpp41 if(ba::is_palindrome(vec.begin(), vec.end())) in main()
48 if(ba::is_palindrome(vec.cbegin(), vec.cend())) in main()
56 if(ba::is_palindrome(list.begin(), list.end())) in main()
66 if(ba::is_palindrome(vec.begin(), vec.end(), lambdaComparator)) in main()
71 if(ba::is_palindrome(vec.begin(), vec.end(), funcComparator<int>)) in main()
76 if(ba::is_palindrome(vec.begin(), vec.end(), functorComparator())) in main()
81 if(ba::is_palindrome(vec.begin(), vec.end(), objFunc)) in main()
88 if(ba::is_palindrome(vec)) in main()
94 if(ba::is_palindrome("aba")) in main()