Programme in C++. Entwicklerforum
-
Anonymous
Inkonsistenz in strukturierten Bindungsdeklarationen in C ++
Post
by Anonymous »
Code: Select all
#include
#include
struct my_struct {
const std::tuple t{5, 3.14};
template
decltype(std::get(t)) get() {
return std::get(t);
}
};
namespace std {
template
struct tuple_size :
integral_constant<
std::size_t,
std::tuple_size_v> {
};
template
struct tuple_element {
using type = tuple_element_t<
i,
decltype(std::declval().t)>;
};
}
int main() {
my_struct s;
auto [x, y] = s;
std::cout
1743668348
Anonymous
[code]#include
#include
struct my_struct {
const std::tuple t{5, 3.14};
template
decltype(std::get(t)) get() {
return std::get(t);
}
};
namespace std {
template
struct tuple_size :
integral_constant<
std::size_t,
std::tuple_size_v> {
};
template
struct tuple_element {
using type = tuple_element_t<
i,
decltype(std::declval().t)>;
};
}
int main() {
my_struct s;
auto [x, y] = s;
std::cout
-
-
TypScript Regulärer Expression Inkonsistenz
Ich habe diese Funktion in meinem TS:
export const parseCode = (code: string, name: string = 'master'): { snippet: string; conf: ProfileSettings } => {
console.log(name);
console.log(code);...
- 0 Replies
- 3 Views
-
Last post by Anonymous
-
-
CSS -Taste Animation Inkonsistenz
by
Anonymous »
» in
CSS
Gibt es einen Grund, warum mein erster Knopf von links nach rechts animiert, aber mein 'dark-btn' ist nicht? />
* {
margin:0;
padding:0;
}
.elementor-button {
position: relative;
overflow:...
- 0 Replies
- 1 Views
-
Last post by Anonymous