1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9// UNSUPPORTED: c++98, c++03, c++11, c++14
10
11// <iterator>
12
13// move_iterator
14
15// Make sure that the implicitly-generated CTAD works.
16
17#include <iterator>
18
19#include "test_macros.h"
20
21int main(int, char**) {
22 int* it = nullptr;
23 std::move_iterator move_it(it);
24 ASSERT_SAME_TYPE(decltype(move_it), std::move_iterator<int*>);
25
26 return 0;
27}
28

source code of libcxx/test/std/iterators/predef.iterators/move.iterators/move.iterator/implicit_ctad.pass.cpp