Run clang-format
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
#include <future>
|
||||
#include <iostream>
|
||||
int find_the_answer_to_ltuae()
|
||||
int
|
||||
find_the_answer_to_ltuae()
|
||||
{
|
||||
return 42;
|
||||
return 42;
|
||||
}
|
||||
|
||||
void do_other_stuff()
|
||||
{}
|
||||
|
||||
int main()
|
||||
void
|
||||
do_other_stuff()
|
||||
{
|
||||
std::future<int> the_answer=std::async(find_the_answer_to_ltuae);
|
||||
do_other_stuff();
|
||||
std::cout<<"The answer is "<<the_answer.get()<<std::endl;
|
||||
}
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
std::future<int> the_answer = std::async(find_the_answer_to_ltuae);
|
||||
do_other_stuff();
|
||||
std::cout << "The answer is " << the_answer.get() << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user