Line infantry
After the Battle of Rocroi fought on 19 May 1643, the Spanish abandoned the Tercio system and adopted the Line infantry doctrine used by the French. A common end date for the use of the pike in infantry formations is 1700, although some armies such as the Prussians had already abandoned the pike decades prior, whereas others such as the Swedish and Russians continued to use it for several decades afterward—the Swedes of King Charles XII in particular were using it to great effect until 1721. The Army of the Holy Roman Empire officially stopped using pikemen in 1699. It had been progressively phasing out both pikes and lances since the Thirty Years War. Following Montecuccoli's reforms in the 1660s, the paper strength of an Imperial infantry company was 48 pikemen, 88 musketeers, and 8 shieldmen. The Imperial Army used this configuration during the Great Turkish War, most famously at the Battle of Vienna, where flintlock muskets were outnumbered by matchlocks (the flintlock would not enter regular service until 1699). During the same conflict, the Polish-Lithuanian army also made extensive use of pikes. In 1703, the French army also discontinued the use of the pike, followed in 1704 by the British and in 1708 by the Dutch. Between 1699 and 1721, Peter I converted almost all Russian foot-regiments to line infantry.