---
title: "Anshuman Tiwari (@anshumantiwari) | Hashnode"
description: "Student. Read the latest articles by Anshuman Tiwari on Hashnode."
url: "https://hashnode.com/@anshumantiwari"
---

@anshumantiwari

# Anshuman Tiwari

@anshumantiwari · Joined October 2021

Student

### [Operator Functions in C++ :](https://anshumantiwari.hashnode.dev/operator-functions-in-c?utm_source=hashnode&utm_medium=feed)

You can use operators not only to perform operations by passing variables rather using class deirectly , Here's How : #include "iostream" class Arithmetic{ public: int a; Arithmetic(const int a) : a(a) {}; int Add(cons...

1 min read · [anshumantiwari.hashnode.dev](https://anshumantiwari.hashnode.dev/operator-functions-in-c?utm_source=hashnode&utm_medium=feed)

[Oct 27, 2021](https://hashnode.com/posts/operator-functions-in-c/6178d366913b6d3f08e15973)

### [Function Pointers in C++.](https://anshumantiwari.hashnode.dev/function-pointers-in-c?utm_source=hashnode&utm_medium=feed)

Like pointers in C ( \*int , \*char ) we can use pointers to a function . Here's a sample of Function Pointer :: #include "iostream" void Sample(){ std::cout << " This is sample function call ." << std::endl; }; int main(){ auto function = Samp...

1 min read · [anshumantiwari.hashnode.dev](https://anshumantiwari.hashnode.dev/function-pointers-in-c?utm_source=hashnode&utm_medium=feed)

[Oct 15, 2021](https://hashnode.com/posts/function-pointers-in-c/61695b7a53401f641ba17f95)

### [Lambdas in C++](https://anshumantiwari.hashnode.dev/lambdas-in-c?utm_source=hashnode&utm_medium=feed)

C++ allows us to use inline functions like we use in Python . Let's see the expression of Lambda Functions : auto lambdas = \[ capture clause \] (parameters) -> return-type { definition of method ... } Implementation of Simple Lambda Function:...

1 min read · [anshumantiwari.hashnode.dev](https://anshumantiwari.hashnode.dev/lambdas-in-c?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/lambdas-in-c/615c592f8dc8c063d56f5c6e) [Oct 5, 2021](https://hashnode.com/posts/lambdas-in-c/615c592f8dc8c063d56f5c6e)

### [Singletons in C++](https://anshumantiwari.hashnode.dev/singletons-in-c?utm_source=hashnode&utm_medium=feed)

Let's know what is Singletons : Sometimes we need to have only one instance of our class for example a single DB connection shared by multiple objects as creating a separate DB connection for every object may be costly. Similarly, there can be a sing...

1 min read · [anshumantiwari.hashnode.dev](https://anshumantiwari.hashnode.dev/singletons-in-c?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/singletons-in-c/615b0b19e2f1936f70b29d78) [Oct 4, 2021](https://hashnode.com/posts/singletons-in-c/615b0b19e2f1936f70b29d78)

### [Sorting a Generics Array in C++ ( The easy way) .](https://anshumantiwari.hashnode.dev/sorting-a-generics-array-in-c-the-easy-way?utm_source=hashnode&utm_medium=feed)

Sorting a Generics Array in C++

2 min read · [anshumantiwari.hashnode.dev](https://anshumantiwari.hashnode.dev/sorting-a-generics-array-in-c-the-easy-way?utm_source=hashnode&utm_medium=feed)

[Oct 3, 2021](https://hashnode.com/posts/sorting-a-generics-array-in-c-the-easy-way/61593da1e2f1936f70b2749e)
