Skip to content

Commit 7dd8b59

Browse files
committed
Blog kapağı eklendi.
1 parent 83ca773 commit 7dd8b59

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

_posts/2025-02-05-modern-cpp-compile-time.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ layout: post
33
title: "Modern C++'ta Derleme Zamanı Özellikleri"
44
date: 2025-02-05 18:29:22 +0300
55
categories: [programlama]
6-
image: "2025-02-05-modern-cpp-compile-time.jpeg"
7-
image_hash: "3bde78199468d6affeb6539c56af87c9"
6+
image: "2025-02-05-modern-cpp-compile-time.webp"
7+
image_hash: "28e960d2654d12b03416972c02c6ce00"
88
---
99

1010

@@ -352,12 +352,13 @@ başlatıcılar bulunuyor, hatta bu başlatıcılar `range-based for loops` konu
352352
Artık C++17 ile birlikte, bir `if` veya `switch` ifadesinin içinde doğrudan değişken başlatmaya olanak tanır.
353353

354354
**Örnek: Basitleştirilmiş `if` İfadesi**
355+
355356
```cpp
356357
#include <map>
357358
#include <iostream>
358359

359360
int main() {
360-
std::map<int, std::string> data = {{1, "Bir"}, {2, "İki"}};
361+
std::map<int, std::string> data = { {1, "Bir"}, {2, "İki"} };
361362
if (auto it = data.find(2); it != data.end()) {
362363
std::cout << "Bulundu: " << it->second;
363364
} else {
126 KB
Loading

0 commit comments

Comments
 (0)