aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/cvlist.h
blob: e09c7d9438467863c8da06d05edfe372735ccf52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef CONSTVALUELIST_H
#define CONSTVALUELIST_H

#include <list>
#include "libsamplemacros.h"

class CVValueType
{
    CVValueType();
};

using const_ptr_value_list = std::list<const CVValueType*>;

// This tests binding generation for a container of a const value type. The
// class doesn't need to do anything; this is just to verify that the generated
// binding code (the container conversion in particular) is const-valid.

class CVListUser
{
public:
    static const_ptr_value_list produce() { return {}; }
    static void consume(const const_ptr_value_list &l) { (void)l; }
};

#endif // LIST_H