initialization in c++

Default initialization Value initialization T()new T ()Class::Class(…) : member() { … }T object {};T{}new T {}Class::Class(…) : member{} { … } Direct initialization T object ( arg );T object ( arg1, arg2, … ); T object { arg }; T ( other )T ( arg1, arg2, … ) static_cast< T >( other ) new T(args, …) Class::Class() : member(args, …) { … } [arg](){ … } Copy

Functions in c++

Function Pointer you can not cast non virtual function pointer you can cast virtual function pointer generic function pointer lambda expression [ captures ] ( params ) -> ret { body }[ captures ] ( params ) { body }[ captures ] { body } Function

Declarations in c++

Enum enum name { enumerator = constexpr , enumerator = constexpr , … } enum name : type { enumerator = constexpr , enumerator = constexpr , … } enum name : type ; Array Namespace Reference declaration forwarding Pointer pointer to object const pointer Syntax meaning const T* pointer to constant object

Supernode

The two nonreference nodes form supernode if the voltage source (dependent or independent) is connected between two nonreference nodes. As shown below