☰
Debian Codegraph
@
4.36.0-2
/
/
examples
/
specific
/
cpp_ns_template_specialization.h
☽
☼
examples/specific/cpp_ns_template_specialization.h
code
plain
raw
symbols
SCIP
BSD-3-clause
2009-2023 Michael Jones <
[email protected]
>; 2018-2022 Melvin Vermeeren <
[email protected]
>; 2018-2023 Jakob Lykke Andersen <
[email protected]
>; 2024-2025 Adam Turner <
[email protected]
>
debian/copyright
1
namespace
ns1 {
2
struct
Foo
{
3
int
value
;
4
};
5
}
// namespace ns1
6
7
namespace
ns2 {
8
template <class
U
> struct Trait {
9
static
constexpr
bool
valid = false;
10
};
11
12
template <>
struct
Trait
<ns1::Foo> {
13
static
constexpr
bool
valid = true;
14
};
15
}
// namespace ns2