Skip to content

Commit 781844f

Browse files
committed
..
1 parent 5a0a12f commit 781844f

7 files changed

Lines changed: 10 additions & 50 deletions

File tree

cpp.fp/lazy.cpp

Lines changed: 0 additions & 45 deletions
This file was deleted.
File renamed without changes.
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ void test1()
165165
cout << p.first << ": " << p.second << '\n';
166166
}
167167

168-
void test2() {
168+
void test2()
169+
{
169170
// 2. 일반 배열 예
170171
cout << "[TEST 2] array\n";
171172
string C[] = {"foo", "bar", "baz"};
@@ -177,7 +178,8 @@ void test2() {
177178
cout << p.first << ": " << p.second << '\n';
178179
}
179180

180-
void test3() {
181+
void test3()
182+
{
181183
// 3. const 예제
182184
cout << "[TEST 3] const\n";
183185
const string E[] = {"foo", "bar", "baz"};
@@ -187,7 +189,8 @@ void test3() {
187189
cout << (p.first += 1) << ": " << p.second << '\n';
188190
}
189191

190-
void test4() {
192+
void test4()
193+
{
191194
// 4. 앞서 구현한 range 사용 예
192195
cout << "[TEST 4] range\n";
193196
auto&& D = range(100, 103);
@@ -196,7 +199,8 @@ void test4() {
196199
cout << p.first << ": " << p.second << '\n';
197200
}
198201

199-
void test5() {
202+
void test5()
203+
{
200204
// 5. 변수를 거치지 않고 직접 사용
201205
cout << "[TEST 5] in-place through rvalue reference\n";
202206
for (auto&& p : enumerate(range(100, 103)))
@@ -213,7 +217,8 @@ void test5() {
213217
cout << p.first << ": " << p.second << '\n';
214218
}
215219

216-
void test6() {
220+
void test6()
221+
{
217222
// 6. 초기화 리스트
218223
cout << "[TEST 6] initializer list\n";
219224
for (auto&& p : enumerate({"foo", "bar", "baz"}))

0 commit comments

Comments
 (0)