fork download
#include <iostream>
#include <type_traits>
#include <vector>
template <typename T>
struct is_foo
{
	static bool const value = true;
};
template<
	typename Ty,
	bool foo = is_foo<Ty>::value
>
struct bar {
	static bool const value = true;
};
int main() {
	int elem;
	std::cout << bar<decltype(elem)>::value << std::endl;
	return 0;
}
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
1