| //===----------------------------------------------------------------------===// |
| // The LLVM Compiler Infrastructure |
| // This file is dual licensed under the MIT and the University of Illinois Open |
| // Source Licenses. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| // : public unary_function<T, size_t> |
| // size_t operator()(T val) const; |
| #include "../../min_allocator.h" |
| typedef std::vector<bool> T; |
| static_assert((std::is_base_of<std::unary_function<T, std::size_t>, |
| bool ba[] = {true, false, true, true, false}; |
| T vb(std::begin(ba), std::end(ba)); |
| #if __cplusplus >= 201103L |
| typedef std::vector<bool, min_allocator<bool>> T; |
| static_assert((std::is_base_of<std::unary_function<T, std::size_t>, |
| bool ba[] = {true, false, true, true, false}; |
| T vb(std::begin(ba), std::end(ba)); |