Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C++ standard
//clang 3.8.0 #include <iostream> #include <QtCore> #include <8iutils/String.hpp> #include "ThisProject/File.hpp" using annoyingMap = std::map<std::string, std::array<size_t, 255>>; class SomeType { public: SomeType(int i = 0, std::string& s = "lol") :m_numIterations{i} ,m_someString{s} {} void someFunction(int i = 0) const noexcept; int otherfunc(int i) { //use sline breaks to clarify lambda sections auto aLambda = [val = m_someValue, &m_someString] (int j) { return val + j;}; return aLambda(i); virtual ~SomeType() = default; int someValue() const noexcept { return m_numIterations;} void setSomeValue(const int& newVal) { m_someValue = newVal;} private: int m_someValue; std::string m_someString; std::shared_ptr<bool> m_someBool; } int main() { std::cout << "Hello, world!\n"; } namespace Lol { namespace Troll { int switchFunc(int a) { switch(a) { case 1: { bar(1); break; } case 2: { bar(2); break; } case 3: default: { bar(3); break; } } } void manyParams( int a , size_t b , std::string c , Lol::Troll:Type d , uint64_t e , float f , double g , bool h ) { /* function body */ } } }
run
|
edit
|
history
|
help
0
AnnotateAttr templated test
mddd
SubsequenceArray
Array-Based Heap Example Starter Code
Virtual Function Example
A
Zadanie Dejwu
Recursive Enumeration Example
problem_name_1
mpi_distributed_sort