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++03, c++11, c++14, c++17
10
11// shared_ptr
12
13#include <memory>
14
15#include <iterator>
16
17static_assert(std::indirectly_readable<std::shared_ptr<int> >);
18static_assert(std::indirectly_writable<std::shared_ptr<int>, int>);
19static_assert(!std::weakly_incrementable<std::shared_ptr<int> >);
20static_assert(std::indirectly_movable<std::shared_ptr<int>, std::shared_ptr<int>>);
21static_assert(std::indirectly_movable_storable<std::shared_ptr<int>, std::shared_ptr<int>>);
22static_assert(std::indirectly_copyable<std::shared_ptr<int>, std::shared_ptr<int>>);
23static_assert(std::indirectly_copyable_storable<std::shared_ptr<int>, std::shared_ptr<int>>);
24static_assert(std::indirectly_swappable<std::shared_ptr<int>, std::shared_ptr<int> >);
25
26static_assert(!std::indirectly_readable<std::shared_ptr<void> >);
27static_assert(!std::indirectly_writable<std::shared_ptr<void>, void>);
28static_assert(!std::weakly_incrementable<std::shared_ptr<void> >);
29static_assert(!std::indirectly_movable<std::shared_ptr<void>, std::shared_ptr<void>>);
30static_assert(!std::indirectly_movable_storable<std::shared_ptr<void>, std::shared_ptr<void>>);
31static_assert(!std::indirectly_copyable<std::shared_ptr<void>, std::shared_ptr<void>>);
32static_assert(!std::indirectly_copyable_storable<std::shared_ptr<void>, std::shared_ptr<void>>);
33

source code of libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/iterator_concept_conformance.compile.pass.cpp