is for questions dealing with the type of the variable or value returned by a function.
I have a situation where I just want the return type to be different for a method overload, but you …
c# .net overloading return-typeIn the following program, I have added an explicit return statement in func(), but the compiler gives me the following …
c++ function c++11 constexpr return-typeTrying some code, I realized that the following code compiles: struct { int x, y; } foo(void) { } It seems as if …
c struct return-value c99 return-typeI have a project that has the following components: public abstract class BaseThing { public abstract <T extends BaseThing> …
java generics polymorphism abstract-class return-typeI'm struggling with understanding return values in Swift. Can you explain the difference between these? func someFunc() -> Void {} …
swift function return-typeEver since its introduction in ECMA-262, 3rd Edition, the Array.prototype.push method's return value is a Number: 15.4.4.7 Array.prototype.…
javascript specifications return-typeCan the main() function in a C program return a double data type? If Yes, how and why? If No, …
c return-typeA virtual function's return type should be the same type that is in base class, or covariant. But why do …
c++ overriding virtual-functions return-type covariantIn C++ we can do this: struct Base { virtual Base* Clone() const { ... } virtual ~Base(){} }; struct Derived : Base { virtual Derived* Clone() …
c++ smart-pointers virtual-functions return-typeA while ago I used std::function pretty much like this: std::function<void(int)> func = [](int i) …
c++ c++11 return-type std-function